Himanshu Gautam
Sunday, July 3, 2016
Set Date Format using TextBoxFor in mvc
Use this format
"{0:MM/dd/yyyy}" in textboxfor html helper to MM/dd/yyyy format.
@Html.TextBoxFor(z => z.DOB,"{0:MM/dd/yyyy}", new { @class = "form-control datepicker", @id = "datetimepicker" })
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment