Validate two dates, 2date - 1date > 1month


I have a model with date field, i need to compare this date with current
system time. The date that inputed from web-form should be at least one
month later than current system time.

What the best way to do it?


I would probably use something like this, assuming you have a Time

1.month.ago >= the_time