Turkish date format in Date Input Field


In ui-form.html example there is a field named Input Type = Date. My question is how can I change this input field to Turkish date format.

Thank you guys for helping out.

Hi @john,

A couple of options can be passed to override default material datepicker behaviours. To change the date format, you can do something like:

$('.datepicker').datepicker({format: 'dd.mm.yyyy'});

Material uses the http://amsul.ca/pickadate.js/date/ library and all the available rules to format the date can be found here.

1 Like

Thanks @sesemaya.

Have an awesome year!