How to work with datetime in angularjs? I get the date and time in the format yyyy-MM-dd HH: mm How can I convert it to the format - day-month-year time? thank

1 answer 1

$scope.myDate = new Date;

{{myDate | date:'dd-MM-yyyy'}}