Using a date time parser instead of new Date()