Flowdock

Notes posted by samiron

RSS feed
December 23, 2009 - (<= v2.3.2)
0 thanks

Compare dates

You can check a date resides between two dates.

Date.today.between?(Date.yesterday, Date.tomorrow)

will return true

Date.yesterday.between?(Date.today, Date.tomorrow)

will return false