Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67441

AngularJS and input type = date, how to format model data?

$
0
0

i have following form input which i'm trying to fill by scope data:

<input type="date" name="editCallForm.date"  ng-model="editCallForm.date">

I tried a few combination of date formatting, for example:

moment($rootScope.formData.date).format('DD/mm/YYYY');

But without luck (for time input is it working without problems).

What is the right format for this type of the input?

Thanks for any help.


Viewing all articles
Browse latest Browse all 67441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>