MVC 4 / Bootsrap 3 - Setting Date text object with correct formatting string
I can not figure out the secret format string to get my time displayed
into a time text box. The time is stored in the database in this format
'10:30 AM' DeliveryTime is defined as a string in the database. I have
tried various versions similar to this below to no avail. Please help.
<input type="time" id="DeliveryTime" name="DeliveryTime"
class="form-control" value="@Model.DeliveryTime.ToString("hh:mm tt")">
No comments:
Post a Comment