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

[Solved] Timepicker the field must be a date - validation fails

1 Answer 177 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.
Dani
Top achievements
Rank 1
Dani asked on 08 May 2012, 03:07 PM

My code is similar to this one: http://demos.telerik.com/aspnet-mvc/grid/editingajax

The DateTime partial view:

@model DateTime?
@( Html.Telerik().DatePickerFor(m => m) )

and the binding in the grid:

columns.Bound(p => p.Timestamp).Width(110);

And the field in my model class:

public DateTime Timestamp
    {
        get; set;
    }

However, when I enter value bigger that 12 for a day, I get error the field must be a date. This is so annoying! How to resolve it?

1 Answer, 1 is accepted

Sort by
0
madladuk
Top achievements
Rank 2
answered on 25 Jan 2013, 08:46 AM
I also get the same problem! Could we have an answer? I'm guessing its trying to do the date in mm/dd/yy format.
Tags
Date/Time Pickers
Asked by
Dani
Top achievements
Rank 1
Answers by
madladuk
Top achievements
Rank 2
Share this question
or