Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 20, 2007 02:28 AM by chetan.sarode
Participant
1022 Points
788 Posts
Dec 10, 2007 07:58 PM|LINK
Hi,
how can I change the default time on calendars from 1/1/1753 (!) to 2007?
Thanks.
All-Star
66639 Points
11275 Posts
Dec 11, 2007 02:27 AM|LINK
The following example sets TodaysDate to today then sets the SelectedDate to TodaysDate.
DateTime today = DateTime.Today; Calendar1.TodaysDate = today;
Calendar1.SelectedDate = Calendar1.TodaysDate;
Dec 11, 2007 05:58 PM|LINK
Thanks for the reply. The culprit was sqlDateTime.Minvalue which is 01/01/1753 (in defaults.cs).
Dec 20, 2007 02:28 AM|LINK
Thanks very much
NoBullMan
Participant
1022 Points
788 Posts
Change default time
Dec 10, 2007 07:58 PM|LINK
Hi,
how can I change the default time on calendars from 1/1/1753 (!) to 2007?
Thanks.
chetan.sarod...
All-Star
66639 Points
11275 Posts
Re: Change default time
Dec 11, 2007 02:27 AM|LINK
The following example sets TodaysDate to today then sets the SelectedDate to TodaysDate.Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
NoBullMan
Participant
1022 Points
788 Posts
Re: Change default time
Dec 11, 2007 05:58 PM|LINK
Thanks for the reply. The culprit was sqlDateTime.Minvalue which is 01/01/1753 (in defaults.cs).
chetan.sarod...
All-Star
66639 Points
11275 Posts
Re: Change default time
Dec 20, 2007 02:28 AM|LINK
Thanks very much
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.