Date parser with testing