# Date must be greater than

**URL:** <https://forum.kirupa.com/t/date-must-be-greater-than/210287>\
**Category:** Uncategorized\
**Created:** [December 17, 2006, 9:13am UTC](https://forum.kirupa.com/t/date-must-be-greater-than/210287 "2006-12-17T09:13:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thesleuth](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@thesleuth](https://forum.kirupa.com/u/thesleuth)\
**Post date:** [December 17, 2006, 9:13am UTC](https://forum.kirupa.com/t/date-must-be-greater-than/210287/1 "2006-12-17T09:13:44Z")

</div>

Hi,  
I’m having a little on how to get PHP to check if the date is greater than something. I am storing my date as DateTime in mysql and I want the PHP to start a function if the **current** datetime is 240 hrs (10 days) greater than the one stored in my db. How should I go about doing this? Should I change the format on how I store my date? I’ve googled about it and can find little info about it.  
Thanks
