Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

deprecation warning: value provided is not in a recognized rfc2822 or iso format. moment construction falls back to js date(), which is not reliable across all browsers and versions

you need to put the format in the moment constructor... moment(new Date, "YYYY-MM-DD")

see https://momentjs.com/docs/#/parsing/string-format/
Source by github.com #
 
PREVIOUS NEXT
Tagged: #deprecation #recognized #iso #moment #construction #falls #js #reliable #browsers #versions
ADD COMMENT
Topic
Name
7+6 =