There are at least three types which represent time: Time
, Date
and DateTime
(from ActiveSupport
).
My problem is, could DateTime
totally replace Date
? In other words, if I can use DateTime
, is there any reason to use Date
instead?
There are at least three types which represent time: Time
, Date
and DateTime
(from ActiveSupport
).
My problem is, could DateTime
totally replace Date
? In other words, if I can use DateTime
, is there any reason to use Date
instead?