doubt Input type date

Asked

Viewed 3,083 times

0

Good afternoon, I am making a form, for registration and modification of users. When I try to insert a date in type="date" inputs, no data type is displayed on the screen. These dates I’m using all come from a json that already has them registered. Hold on to know some kind of solution for this ?

    <div layout="row" flex>
      <md-input-container flex>
        <label>Data de Adesao</label>
        <input type="date" name="adesao" ng-model="userSettings.userForm.adesaoUserForm ">
      </md-input-container>
      <md-input-container flex>
        <label>Data Vencimento</label>
        <input type="date" name="vencimento" ng-model="userSettings.userForm.vencimentoUserForm  " >
      </md-input-container>
    </div>

1 answer

1


  • in the database the dates are recorded in this format : "2017-02-08T00:00:00.000Z"

  • Sorry buddy, I gave you the wrong pattern, the correct one is yyyy-mm-dd. Try it like this: <input type="date" name="bday" value="2017-06-12">

Browser other questions tagged

You are not signed in. Login or sign up in order to post.