google chrome - Datetimepicker display format issue -
i not sure if 1 having issue on chrome browser annoying cannot fix it. have done quite bit of search here nothing has helped.
first of here viewmodel data annotation
[required] [datatype(datatype.date)] [displayformat(applyformatineditmode = true, dataformatstring = "{0:yyyy-mm-dd hh:mm}")] [displayname("start date")] public datetime? startdate { get; set; } on view using datetimepicker bootstrap extension
when on process of creating date select date calander select time well. on creating process there no issue on chrome , ei10. however, once date has been created go edit mode change date. date displayed in dd/mm/yyy hh:mm format(example 18/03/2014 10:00) instead of yyyy-mm-dd hh:mm (2014-03-18 10:00). without changing date click update button on page validation error date fields.(see screenshot) in chrome browser. in ei10 everthing works fine. first time experiencing works on ie not in chrome :)
i have set datetimepicker date format
$('.startdate').datetimepicker({ format: 'yyyy-mm-dd hh:mm' }); but still cannot change display format of field yyyy-mm-dd hh:mm. last thing comes in mind have convert format in controler before gets passed view? thought viewmodel annotations should doing me or wrong ?
i found line of code people suggesting issue
jquery.validator.methods["date"] = function (value, element) { return true; } i still couldn't work

Comments
Post a Comment