working date parser (it's ugly, yeah)