I am using delimiters to get the values directly from the model in a data-bound fashion.
I wish to force this format to "yyyy/MM/dd HH:mm:ss" on specific values/entries/fields.
There are 2 different lines of code in particular, one being editable and the other not.
Here are the 2 lines:
<%: Html.Encode(Model.DateTimeValue)%>
<%: Html.TextBoxFor(m => m.DateTimeValue, new { @class = "datetimepicker" })%>
How can I force these to comply with the above mentioned format?
I would prefer it if there was an inline solution to this.