DateTime Picker:
Th Required Input Format is : "dd-MM-yyyy". When the Date selected is greater than 12, it shows the required format. But when the Date is selected as a day below 12th of any month, the control displays the Default Format : "MM-dd-yyyy"
For Example :
1. 14-08-2010 - The Date is displayed as the same.
2. 06-08-2010 = the Date is displayed as 08-06-2010(6th Aug 2010).
4 Answers, 1 is accepted
0
Hello Divagar,
Make sure that you set the DateFormat and DisplayDateFormat as demonstrated below:
If this is so, I recommend that you set an appropriate culture that uses such arrangement:
Regards,
Daniel
the Telerik team
Make sure that you set the DateFormat and DisplayDateFormat as demonstrated below:
<
telerik:RadDateTimePicker
ID
=
"RadDateTimePicker1"
runat
=
"server"
>
<
DateInput
DateFormat
=
"dd/MM/yyyy"
DisplayDateFormat
=
"dd/MM/yyyy"
/>
</
telerik:RadDateTimePicker
>
If this is so, I recommend that you set an appropriate culture that uses such arrangement:
<
telerik:RadDateTimePicker
ID
=
"RadDateTimePicker1"
runat
=
"server"
Culture
=
"en-GB"
>
<
DateInput
DateFormat
=
"dd/MM/yyyy"
DisplayDateFormat
=
"dd/MM/yyyy"
/>
</
telerik:RadDateTimePicker
>
Regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

divagar
Top achievements
Rank 1
answered on 11 Aug 2010, 10:07 AM
Hi ,
Th Required Input Format is : "dd-MM-yyyy hh:mm tt". When the Date selected is greater than 12, it shows the required format. But when the Date is selected as a day below 12th of any month, the control displays the Default Format : "MM-dd-yyyy hh:mm tt"
For Example :
1. I selected the date 08-04-2010 12:00 AM(dd-MM-yyyy hh:mm tt),its displays as 04-08-2010 12:00 AM(MM-dd-yyyy hh:mm tt)
2. when i selected the time picker after the date picker,its is displays correctly.
i have attached my source code,i am facing the same problem like:
<telerik:RadDateTimePicker ID="rdpdatetime" runat="server" Width="208px" Skin="WebBlue">
<DateInput runat ="server" DateFormat="dd-MM-yyyy hh:mm tt" DisplayDateFormat="dd-MM-yyyy hh:mm tt"
ReadOnly="true">
</DateInput>
<Calendar ID="Calendar1" runat="server">
<SpecialDays>
<telerik:RadCalendarDay Repeatable="Today" ItemStyle-BackColor="#acd7f7">
</telerik:RadCalendarDay>
</SpecialDays>
</Calendar>
</telerik:RadDateTimePicker>
Th Required Input Format is : "dd-MM-yyyy hh:mm tt". When the Date selected is greater than 12, it shows the required format. But when the Date is selected as a day below 12th of any month, the control displays the Default Format : "MM-dd-yyyy hh:mm tt"
For Example :
1. I selected the date 08-04-2010 12:00 AM(dd-MM-yyyy hh:mm tt),its displays as 04-08-2010 12:00 AM(MM-dd-yyyy hh:mm tt)
2. when i selected the time picker after the date picker,its is displays correctly.
i have attached my source code,i am facing the same problem like:
<telerik:RadDateTimePicker ID="rdpdatetime" runat="server" Width="208px" Skin="WebBlue">
<DateInput runat ="server" DateFormat="dd-MM-yyyy hh:mm tt" DisplayDateFormat="dd-MM-yyyy hh:mm tt"
ReadOnly="true">
</DateInput>
<Calendar ID="Calendar1" runat="server">
<SpecialDays>
<telerik:RadCalendarDay Repeatable="Today" ItemStyle-BackColor="#acd7f7">
</telerik:RadCalendarDay>
</SpecialDays>
</Calendar>
</telerik:RadDateTimePicker>
0
Hello Divagar,
Have you tried the second suggestion from my previous reply?
Regards,
Daniel
the Telerik team
Have you tried the second suggestion from my previous reply?
<
telerik:RadDateTimePicker
ID
=
"rdpdatetime"
runat
=
"server"
Width
=
"208px"
Skin
=
"WebBlue"
Culture
=
"en-GB"
>
<
DateInput
ID
=
"DateInput1"
runat
=
"server"
DateFormat
=
"dd-MM-yyyy hh:mm tt"
DisplayDateFormat
=
"dd-MM-yyyy hh:mm tt"
ReadOnly
=
"true"
>
</
DateInput
>
<
Calendar
ID
=
"Calendar1"
runat
=
"server"
>
<
SpecialDays
>
<
telerik:RadCalendarDay
Repeatable
=
"Today"
ItemStyle-BackColor
=
"#acd7f7"
>
</
telerik:RadCalendarDay
>
</
SpecialDays
>
</
Calendar
>
</
telerik:RadDateTimePicker
>
Regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

divagar
Top achievements
Rank 1
answered on 19 Aug 2010, 12:45 PM
Hello Daniel ,
Thanks for your suggestion. i got the solution.
Thanks & Regards,
Divagar
Thanks for your suggestion. i got the solution.
Thanks & Regards,
Divagar