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

24hour format in RadDateTimePicker

3 Answers 603 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Luis
Top achievements
Rank 1
Luis asked on 18 Feb 2014, 05:24 PM
Hello Guys!
I have a problem, I've a RadDateTimePicker , but the format date its something like this 19/02/2014 12:00:00 a.m. but the follow format: 2014-02-18 11:00:26.293
anyone knows How Can I do this?
thanks and regards,
Luis.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Feb 2014, 03:10 AM
Hi Luis,

Please try the following code snippet to achieve your scenario.

ASPX:
<telerik:RadDateTimePicker ID="RadDateTimePicker2" runat="server" Culture="English (United States)">
    <TimeView TimeFormat="HH:mm:ss.fff" runat="server">
    </TimeView>
    <DateInput DisplayDateFormat="yyyy-MM-dd HH:mm:ss.fff" runat="server">
    </DateInput>
</telerik:RadDateTimePicker>

Thanks,
Shinu.
0
a a
Top achievements
Rank 1
answered on 08 Apr 2020, 06:32 PM

not working for me, see picture, pls help, thanks:

<telerik:RadDateTimePicker ID="RadDateTimePicker2" runat="server" Culture="English (United States)">
    <TimeView TimeFormat="HH:mm:ss.fff" runat="server">
    </TimeView>
    <DateInput DisplayDateFormat="yyyy-MM-dd HH:mm:ss.fff" runat="server">
    </DateInput>
</telerik:RadDateTimePicker>

 

 

0
Doncho
Telerik team
answered on 10 Apr 2020, 04:41 PM

Hi,

Telerik RadDatePicker uses RadCalendar underneath and that has its own formatting pattern, see Date Format Patterns. That is the reason the The "fff" custom format specifier did not apply in your case.

For more information on Formatting the Date in the Calendar, please check out the following articles:

Kind regards,
Doncho
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Calendar
Asked by
Luis
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
a a
Top achievements
Rank 1
Doncho
Telerik team
Share this question
or