1
I need to press the input type="date"
dates that are stored in millisecond format values.
Example
<label>Data de expiração:</label>
<input class="form-control" type="date" name="dataexpiracao" ng-model="PontoRelevancia.dados_Evento.dataexpiracao | date:'dd/MM/yyyy' ">
When I use this filter using the input type="text"
it can put in the desired format , but using the input type="date"
he doesn’t work.
What can I do to upload the date information in milliseconds using the type="date"
?
Have you tested
new Date(PontoRelevancia.dados_Evento.dataexpiracao)
?– Sergio
@Henrique I believe the format is correct see this example , but like the author of the answer said , we have to convert to datatype that it appears there of good =|
– stringnome
@Sergio yes ! tested here in my function to retrieve the information it worked also but the ideal and use the directive even to preserve the original format.
– stringnome