Closed kyblinh closed 6 years ago
You can customize the date selection display https://ipiz.herokuapp.com/md-date-range-picker-demo/index.html Please see in Demo Advance
$scope.format = function (dateStart, dateEnd, template, templateName) {
return dateStart && dateEnd && (dateStart.toLocaleDateString() + ' - ' + dateEnd.toLocaleDateString());
}
<md-date-range format="format"></md-date-range>
Oh, i will do that. Sorry didn't see it... Thanks a lot!
Hi there, I am trying to use the date picker and I would like to have a different format when range is selected. (My users do not want to see english). I would like to have something like '05/11/2018 - 26/12/2018'.
I cannot see how i could customize it that way , i have been able to translate most of the calendar with the localizationMap but I cannot get this to work.
Could you tell me how to achieve this?
Code is pretty simple so far:
and
Thanks for the help and for the good work :)