I have the following date =>
October 16 at 6:24 PM
I would like to parse this date into a Javascript Date Object using dateFNS
I tried to follow the doc and did
dateFns.parse(stringDate, 'MMMM d [at] h[:]mm a..aaa', new Date())
but it always return me Invalid Date
https://stackblitz.com/edit/typescript-ts9uub?file=index.ts
am I using it wrong ?
a..aaa? what's that?aoraaoraaa- I couldn't make your code work for anything without a year ... until I used the latest version of date-fns (i.e. 2.16.1 as opposed to 1.29.0 that you're using)