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
Compare dates and get the difference
rubyonrails-talk
0
116
June 18, 2007
How to subtract months from time?
rubyonrails-talk
4
174
October 23, 2006
timestamp help
rubyonrails-talk
3
119
March 8, 2008
about time compare
rubyonrails-talk
3
108
August 22, 2008
Add a month to a Date object
rubyonrails-talk
5
155
December 13, 2007