Say I have a todo app that has title and due_date fields. How do I say “Due in X days?” If a certain todo is due on Dec 29, it should say due in 2 days, X hours.
I suppose it was to do something with Time.now. I understand there’s a
<%= distance_of_time_in_words_to_now%> is there an opposite to that?
Thanks
If anyone is interested, here is how I solved it.
I’ll probably make the fonts different, say red for overdue.
Remember to change timezones if you are not living in coordinated universe time (UTC).