Simplified the Date.parse override method