AngularJS: $filter 'date' won't change format -
i'm trying filter current date format can accepted web api, format being 01/01/0001 00:00:00.
here attempted code @ -
var today = date(); var completedt = $filter('date')(today, 'mm/dd/yyyy hh:mm:ss');
however completedt hold "tue jul 14 2015 15:37:36 gmt+0100 (gmt daylight time)"
can't seem find answer online, assume simple doing wrong.
change today this:
var today = new date();
Comments
Post a Comment