Date reformatter from reddit.com/r/dailyprogrammer
Tidied up!