material icon indicating copy to clipboard operation
material copied to clipboard

How to use custom Date format?

Open stefan-niedermann opened this issue 11 years ago • 4 comments

Hi there,

i live in Germany and our Date Format ist dd.mm.yyyy.

It does not seem to be possible to use our Date Format instead of the american yyyy-mm-dd. Are there any best practices to use our Date Format?

If not, please feel free to interpret this issue as a feature request for an attribute md-date-format="dd.mm.yyyy". :)

Best Regards

stefan-niedermann avatar Jul 08 '15 19:07 stefan-niedermann

same problem

lyrl avatar Jul 20 '15 03:07 lyrl

i just want get date2015-07-20, not need UTC date 2015-07-19T16:00:00.000Z.

lyrl avatar Jul 20 '15 07:07 lyrl

You can add filter : something like : {{ yourdate | date:"dd:MM:yyyy" }} See angularjs doc : https://docs.angularjs.org/api/ng/filter/date?PHPSESSID=cae8e98e7ca559b4605d75c813b358ee

xtiggerk avatar Jul 20 '15 10:07 xtiggerk

use DatePicker and $mdDateLocaleProvider.

ThomasBurleson avatar Sep 04 '15 04:09 ThomasBurleson