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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -