Ruby on Rails Discussions
validate two dates, 2date - 1date > 1month
rubyonrails-talk
M_Graff
(M Graff)
October 9, 2007, 6:58am
1
I would probably use something like this, assuming you have a Time the_time:
1.month.ago >= the_time
Related topics
Topic
Replies
Views
Activity
#more_than? and #less_than? for date-like object monkey patching in activesupport
rubyonrails-core
proposal
,
activesupport
2
58
September 10, 2024
Compare dates and get the difference
rubyonrails-talk
0
112
June 18, 2007
timestamp help
rubyonrails-talk
3
115
March 8, 2008
How to subtract months from time?
rubyonrails-talk
4
168
October 23, 2006
about time compare
rubyonrails-talk
3
105
August 22, 2008