I have the following datepicker which still works just fine:
$('.tmmdatepicker').datepicker({ showOn: "button", buttonImage: "../Content/images/ico-calendar.png", buttonImageOnly: true, dateFormat: "d M, yy", showAnim: "fadeIn", autosize:true });
Here is a view of a razor:
<tr> <td>Start date:</td> <td> @Html.EditorFor(m => m.CurrentFilter.StartTime, new { @class = "tmmdatepicker" , @style = "width:80px" }) </td>
It still works well, but the first time the view is loaded, the time will not be formatted in this format (d M, yy), only after I use the datetimepicker once, then the contents of EditorFor will be updated using the rule.
So, when I first enter the site:

and after I use the button to select a date:
<--- this is how I want to see him at the beginning.
So, is there a way to load this behavior at the beginning? (sorry, I canโt insert direct links to photos)
source share