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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -