# Default Date Value Not working

**URL:** <https://www.five.org/t/default-date-value-not-working/373>\
**Category:** How do I?\
**Tags:** how-to\
**Created:** [March 6, 2024, 9:58pm UTC](https://www.five.org/t/default-date-value-not-working/373 "2024-03-06T21:58:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RMittelman](https://yyz2.discourse-cdn.com/flex030/user_avatar/www.five.org/rmittelman/32/447_2.png) [@RMittelman](https://www.five.org/u/RMittelman)\
**Post date:** [March 6, 2024, 9:58pm UTC](https://www.five.org/t/default-date-value-not-working/373/1 "2024-03-06T21:58:45Z")

</div>

I’m trying to populate a DateAdded field to my Members table.

Firstly, it’s confusing that there is a default value in the table and on the form. Not clear if I need to put the default value in both places or not.

Secondly, I tried putting it in both places, and used =five.now() as the formula. The field itself is defined as Date, not DateTime. I added a record, and in the DateAdded field, it says 2024-03-06. So far so good. But when I save the new record, I get an error saying “Data integrity check - data:type mismatch  
Field (DateAdded) has invalid value  
Not a valid date formatted string”

Why is that not a valid date? Thanks…

---

<div class="post-metadata">

**Author:** ![Jo-Anne](https://yyz2.discourse-cdn.com/flex030/user_avatar/www.five.org/jo-anne/32/45_2.png) [@Jo-Anne](https://www.five.org/u/Jo-Anne)\
**Post date:** [March 6, 2024, 11:12pm UTC](https://www.five.org/t/default-date-value-not-working/373/2 "2024-03-06T23:12:24Z")

</div>

Hi RMittleman,

The now() function needs to be stored with a data type of TimeStamp as it returns the current date and time in UTC as a string. You can display it in your application as Date, but at the table-level it needs to be TimeStamp. This is why you are receiving the error. You may find this link helpful.

> **[now() | Five | Low-Code For Real Developers](https://help.five.org/2.6/docs/api/five/functions/date-time-functions/now/)**
>
> Last updated 5/02/2024

Table-level should always take precedence over the form-level and you should not need to repeat your default value at the form-level, however, I tested this for you using =five.now(), and it seems that it is only working at the form-level, thanks for bringing this to our attention and I will pass it onto our QA team.
