# Date validation

**URL:** <https://www.ruby-forum.com/t/date-validation/113152>\
**Category:** Rails\
**Created:** [August 28, 2007, 6:27am UTC](https://www.ruby-forum.com/t/date-validation/113152 "2007-08-28T06:27:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prashanth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/439d5e/32.png) [@prashanth](https://www.ruby-forum.com/u/prashanth)\
**Post date:** [August 28, 2007, 6:27am UTC](https://www.ruby-forum.com/t/date-validation/113152/1 "2007-08-28T06:27:00Z")

</div>

hi,

i have a date which is entered by  
the user, and i calculate the date entered + 1year, say for example  
start\_on = 27/08/2007 and the end\_on is calculated automatically as  
26/08/2007 i want to check this in the model

check if the the end\_on = 1year + start\_on how to do this? i am using  
date validation plugin. how to do this? can anyone help me.
