Allowed a date object to be passed into setTime instead of a date string