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

[Solved] Stop DateTime autocomplete time portion

1 Answer 45 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kuangyi
Top achievements
Rank 1
Kuangyi asked on 09 Aug 2012, 02:36 PM
Hi, I have a DatePicker in a filter.  I've formatted with "{0:MM/dd/yyyy HH:mm:ss}" so that the filter accepts date-time values.  When I type in a date to the datepicker, "08/08/2012", it automatically appends "08/08/2012 00:00:00" to it.

Is there a way to prevent the automatic appending of the time?  I still want the user to be able to specify time if they want, but if they only specify date, I don't want the time to appear.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 14 Aug 2012, 12:35 PM
Hello Kuangyi,

I am afraid there is no other way. If the format is specified with hours and minutes the DatePicker will automatically insert them. If the hours and minutes are excluded then the time cannot be entered.

Kind regards,
Daniel
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
Date/Time Pickers
Asked by
Kuangyi
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or