Hi,
Here is my code, i want to change my date picker format in my form.
<div class="col-md-6">
<label for="dob">DOB</label>
<div class='input-group date' id='datetimepicker1'>
@Html.TextBoxFor(x => x.DOB, new { @class = "form-control", placeholder = "mm/dd/yyyy" })
<span class="input-group-addon">
<i class="fa fa-calendar" aria-hidden="true"></i>
</span>
@Html.ValidationMessageFor(x => x.DOB)
</div>
</div>
Anonymous User
07-Dec-2017Hi Harsh,
Kindly add the given line of codes in your form as following :