Parse custom date move from moment to luxon #1407
-
I used moment in this project but I wanted to move to luxon. I tried this: I am parsing 2 types of formats from a website: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Please let me know if this solves your issue! |
Beta Was this translation helpful? Give feedback.
d MMM, yyyy @ hh:mma
cannot parse13 Sep, 2015 @ 6:52pm
, becausehh
andmm
are padded tokens. That means the format expects exactly two digits. Your input strings use unpadded numbers, so you should useh
andm
.d MMM @ h:ma
can be used to parse your 1st example.d MMM, yyyy @ h:ma
can be used to parse your 2nd example.Please let me know if this solves your issue!