Reputation: 259
Is there any simple idea to create calendar which enable user to select a date and keep it in database?
I'm creating a system, online car rental. So far, everything looks ok, but i get stuck implementing booking date.
Upvotes: 1
Views: 576
Reputation: 4099
The .NET framework includes a calendar control for this purpose. It's a combination textbox and Javascript based calendar. (I'm using the 4.0 framework, and there's a calendar control in the standard toolbox)
You should be able to store and set the value based on what's in your database.
There's also an Ajax enabled calendar control if you want to implement the AJAX Control toolkit.
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Calendar/Calendar.aspx
Upvotes: 0
Reputation: 743
Why you don't use standart ms sql type datetime
?
For calendar control in html, you can use jQuery UI datePicker - jqueryui.com/demos/datepicker/
Winforms and WPF has such control in standart library
Upvotes: 1