I mean. Yes. Don't write your own date parsing library. Unless you want to go nuts.
https://gist.github.com/timvisee/fcda9bbdff88d45cc9061606b4b...