is there a library or some way to create an input with dart in 24H format? Currently I have an input type = "time" but shows 12H format (am / pm).
Asked
Active
Viewed 1,026 times
1 Answers
0
This is a browser limitation and has nothing to do with Dart.
Seems there are several browsers which don't support the <input type="time">
at all see http://caniuse.com/#feat=input-datetime.
See also
- html5 time inputs shows 12 hours
- HTML5 changing <input type="time"> to 24hrs. format? it is possible
This page provides alternatives http://davidwalsh.name/html5-input-types-alternative#date

Community
- 1
- 1

Günter Zöchbauer
- 623,577
- 216
- 2,003
- 1,567
-
thanks. but there is a library in dart to format the date input? I do not want to add js. – Daniel Castillo Nov 18 '14 at 15:17
-
This has nothing to do with Dart, this is a browser issue. I understand your caveat about JS. – Günter Zöchbauer Nov 18 '14 at 15:22
-
1For formatting and parsing dates to/from strings you can use the [DateFormat](http://www.dartdocs.org/documentation/intl/0.11.10/index.html#intl/intl.DateFormat) class in the [intl](https://pub.dartlang.org/packages/intl) package. – Greg Lowe Nov 18 '14 at 21:51