Friday, 5 May 2017

Moment.js with a format zulu and format date javascript

i have this format date:

-01Mar-0234
-26Feb-0430

01 is day , mar or feb is mouthn and 0430 is 4oclock 30 in formater zulu +00 i'm would like use moment for convert this format i'm try this :

moment('26Feb-0430').format("DD-MM-YY HH:MM"); 

but i haven't good format and i have this error :

Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment c
onstruction falls back to js Date(), which is not reliable across all browsers and version
s. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major r
elease. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments:

can you help me for have 26/02/2017 06:30. for summer and 5h30 winter

tanks you



via Michel Lammens

No comments:

Post a Comment