This is a migrated thread and some comments may be shown as answers.
datetime ISO format
1 Answer 36 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ajay
Top achievements
Rank 1
Ajay asked on 09 Jul 2011, 04:12 AM
Hi
How to make Telerik date time picker return data in ISO format.
I understand that we can format the presentation on grid and form but we need to save to database in a ISO format (YYYY-MM-DD).
The format of the return string must be YYYY-MM-DD. It should be in English locale,
Any Help?

1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 11 Jul 2011, 08:43 AM
Hello Ajay,

You should always receive a valid DateTime object which you can store in format of your choice by calling the ToString method. You can also try setting the Format of the datepicker:

.Format("yyyy-MM-ddTHH:mm:s")

Regards,
Atanas Korchev
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
Date/Time Pickers
Asked by
Ajay
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or