Using 2.0.0-beta.4 of date-fns I'm stuggling to figure out the format string for parsing and ISO date. My date string is as follows:
2019-08-31T14:36:28.511Z
And the parsing code is as follows:
parse(v, 'yyyy-MM-dd', new Date());
v here is the string and this doesn't parse. I've also tried the following:
parse(v, 'yyyy-MM-dd[T]hh:mm:ss.SSSZ', new Date());
This also doesn't parse as I get 'Invalid Date' returned for all of these. This problem is actually in a third party library that I'm using so I can't change it from using the parse rather than parseISO function.
new Date(isoString)
– Yockey