I’m using the date_select and datetime_select helpers in my view, and
they return Date classes from the params hash.
But how do I work with Date classes, they don’t print human readable
dates or times, Time classes work well I can use strftime("%H:%M") to
print to the screen.
Is it possible to convert a Date to a Time, Ive been tinkering in irb
but have got nowhere slowly.
I also find it a bit odd that the Time class includes a Date… If there
was no Date class I could understand a Time class having a date. There
is also DateTime class!
Many thanks, K.