Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert milli seconds into Date in DD/MM/YYYY format in angularjs

I have written a service which returns date in milliseconds , but I want to show it in format 'DD/MM/YYYY' , how can it be done?

like image 868
user3726986 Avatar asked Jun 20 '14 11:06

user3726986


1 Answers

use a date filter and specify format, for example:

{{date_in_milliseconds | date:'dd/MM/yyyy'}}
like image 153
dark_ruby Avatar answered Sep 18 '22 20:09

dark_ruby