# Date checking?

**URL:** <https://www.ruby-forum.com/t/date-checking/186051>\
**Category:** Rails\
**Created:** [March 30, 2010, 11:00pm UTC](https://www.ruby-forum.com/t/date-checking/186051 "2010-03-30T23:00:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adistarmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Post date:** [March 30, 2010, 11:00pm UTC](https://www.ruby-forum.com/t/date-checking/186051/1 "2010-03-30T23:00:54Z")

</div>

Is there a method in Rails to see if a date is valid and in the last  
120 years? I’m doing an app that has a list of people and I’d like to  
check their birthdays. Just checking to see if this is already here  
before i start coding it.

Thanks

Bob

---

<div class="post-metadata">

**Author:** ![adistarmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Post date:** [March 31, 2010, 9:15am UTC](https://www.ruby-forum.com/t/date-checking/186051/2 "2010-03-31T09:15:54Z")

</div>

On Tue, Mar 30, 2010 at 9:59 PM, Bob S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there a method in Rails to see if a date is valid and in the last  
> 120 years? I’m doing an app that has a list of people and I’d like to

I use the validates\_timeliness gem

> **[GitHub - adzap/validates\_timeliness: Date and time validation plugin for...](https://github.com/adzap/validates_timeliness)**
>
> Date and time validation plugin for ActiveModel and Rails. Supports multiple ORMs and allows custom date/time formats. - GitHub - adzap/validates\_timeliness: Date and time validation plugin for Ac...
