material icon indicating copy to clipboard operation
material copied to clipboard

Date input field different format

Open seemsindie opened this issue 11 years ago • 2 comments

This is a question rather then issue. Can i somehow reverse the order then mm and dd in the date field?

So i want to have dd/mm/yyyy instead of mm/dd/yyyy, can i do that?

Thanks.

seemsindie avatar Aug 22 '15 22:08 seemsindie

You can configure the parsing and formatting of dates using the $mdDateLocaleProvider https://material.angularjs.org/HEAD/#/api/material.components.datepicker/service/$mdDateLocaleProvider

dterbeest avatar Aug 25 '15 08:08 dterbeest

@dterbeest is correct. Use $mdDateLocaleProvider

jelbourn avatar Sep 08 '15 17:09 jelbourn