use Date object instead of a formatted string