Re:Ask HN: Why isn't there a `setDay` method on the Date pro...
by perfmode on Sunday September 18, 2016 @10:19PM
(#12528378)
If you were to set the day, what would be the resulting date? Would you move forward or backward in time?
[ Parent
| on HN ]
Re:Ask HN: Why isn't there a `setDay` method on the Date pro...
by saghm on Sunday September 18, 2016 @10:24PM
(#12528387)
I don't see how that would be any less hard to define than `setMonth` or `setHour`
Re:Ask HN: Why isn't there a `setDay` method on the Date pro...
by perfmode on Monday September 19, 2016 @12:49AM
(#12529013)
Set hour is easier because it has an obvious result. The date doesn't change.