我有这种格式的日期格式祖鲁和格式日期:Moment.js用JavaScript
01Mar-0234
26Feb-0430
01
的一天,mar
或feb
是芒斯和0430
是4在formater zulu +00
。 我想用瞬间转换格式,我想这样的:
moment('26Feb-0430').format("DD-MM-YY HH:MM");
,但我还没有很好的格式,我有这样的错误:
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:
你能不能帮我夏天有26/02/2017 06:30
,冬天有5h30
?
你去在该错误消息中的链接?因为它很清楚你需要做些什么来修复它。还有http://momentjs.com/docs/#/parsing/string-format/。 –