This is a migrated thread and some comments may be shown as answers.

DateTimePicker shows min value in calender

1 Answer 204 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 09 Jul 2011, 06:16 PM
Hi,
DateTimePicker shows a min value as 1/1/0001 in calender.How to default it to as todays date.
In other case, if i am not selecting any date from datepicker, datetime property holds the mindate value.How to make this as empty string.
I am using MVVM pattern,

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 14 Jul 2011, 02:57 PM
Hi Rahul,

While trying to write an example to demonstrate you how to achieve this we found an issue with the RadDateTimePicker. You can track the status of the issue here.

However, I would suggest you a workaround. You could bind the DisplayDateStart property to the first date of the current month, and bind the SelectableDateStart to the current date. This way the first visible month will be the current month, and the first selectable date will be the current date. I have attached a sample example to demonstrate you how to achieve this. Hope this helps.

Regards,
Ivo
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
DatePicker
Asked by
Rahul
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or