Users Pricing

forum

Home Forums How to change format of datepicker? – MindStick

How to change format of datepicker?

Hemant Patel 1547 06 Dec 2017

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>

1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md