There is probably a better way to parse inputted dates... doing it manually is unreliable