# Date Validation

**URL:** <https://community.ragic.com/t/date-validation/4179>\
**Category:** Support\
**Created:** [January 16, 2020, 3:10pm UTC](https://community.ragic.com/t/date-validation/4179 "2020-01-16T15:10:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjlock222](https://community.ragic.com/letter_avatar_proxy/v4/letter/c/5daacb/32.png) [@cjlock222](https://community.ragic.com/u/cjlock222)\
**Post date:** [January 16, 2020, 3:10pm UTC](https://community.ragic.com/t/date-validation/4179/1 "2020-01-16T15:10:31Z")

</div>

I want to insure that the date entered in a field is today’s date or earlier (not in the future).  
I tried entering ^\<=DATE() in the validation box but that does not work.

Any help would be appreciated.

Carl

---

<div class="post-metadata">

**Author:** ![Angie](https://community.ragic.com/user_avatar/community.ragic.com/angie/32/1158_2.png) [@Angie](https://community.ragic.com/u/Angie)\
**Post date:** [January 17, 2020, 3:54am UTC](https://community.ragic.com/t/date-validation/4179/2 "2020-01-17T03:54:49Z")

</div>

Hi,

To achieve what you would like to have, please follow steps below:

Let’s say your original date field locates in A2.

Step 1. Create another date field, A3, and apply formulas TODAYTZ().  
Step 2. Apply [daily formulas recalculation](https://www.ragic.com/intl/en/doc-kb/151/Automatic-daily-recalculation) so that TODAYTZ() will auto-renew on a daily basis.  
Step 3. Create another free text field and apply [IF()](https://www.ragic.com/intl/en/doc/18/Formulas#conditional) to compare if the original date field is smaller than TODAYTZ(). For example,  
IF(A3\>A2,“Y”,“N”)  
Step 4. Apply validation: Y on the field created in step 3 so that only entry with “Y” in that field can be saved.

---

<div class="post-metadata">

**Author:** ![cjlock222](https://community.ragic.com/letter_avatar_proxy/v4/letter/c/5daacb/32.png) [@cjlock222](https://community.ragic.com/u/cjlock222)\
**Post date:** [January 17, 2020, 1:00pm UTC](https://community.ragic.com/t/date-validation/4179/3 "2020-01-17T13:00:14Z")

</div>

Thank you for that quick response. I will give it a try.
