#ruby on #rails tips
Date.today.all_dayDate.today.all_weekDate.today.all_monthDate.today.all_quarterDate.today.all_year
Use these methods to easily get date ranges.
They also work with the DateTime class.
@kaffeinated I’ve been a Ruby developer for years and didn’t know you could get date ranges this way. Thanks for sharing!
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.