Native input type="date" format to DD/MM/YYYY

I’d like to use the native datepicker and return the format in DD/MM/YYYY rather than “March 7, 2014”

Second to that, I’d also like to create a fallback to use the angular.ui bootstrap datepicker (http://angular-ui.github.io/bootstrap/) when input type=“date” isn’t supported on the mobile device.

  1. how do i format native datepicker?

  2. how do i provide a fallback to use ui datepicker when there is no native one.

  3. how do i disable the keyboard when using said fallback (as using a datepicker on mobile with input type="text’ will pop up a keyboard over the datepicker)

4 Likes