Title: TODAY() or current date
Last modified: August 22, 2016

---

# TODAY() or current date

 *  Resolved [eleist](https://wordpress.org/support/users/eleist/)
 * (@eleist)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/today-or-current-date/)
 * Hi,
 * if i use the TODAY() function or a blank date field the calculation based on 
   the date: 01/01/1970
 * Field1 date blank [] class hidden
    Field2 date input [01/10/2014]
 * Field1 – Field2 = 16344
 * Correct would be 26, what could be the problem?
 * [https://wordpress.org/plugins/calculated-fields-form/](https://wordpress.org/plugins/calculated-fields-form/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/today-or-current-date/#post-5425826)
 * Hi,
 * Could you send me the URL to your page to take a look, please?
 * If you only need the number of days between two dates, the TODAY operation won’t
   be needed (the TODAY operation is part of the DATE Module available only in the
   Developer version of the plugin), you should insert two date field, for example
   fieldname1 and fieldname2, and calculate the difference between them:
 * ABS(fieldname1-fieldname2)
 * The value of date field by default is the date of today, so you can hide one 
   of date fields through CSS.
 * Best regards.
 *  Thread Starter [eleist](https://wordpress.org/support/users/eleist/)
 * (@eleist)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/today-or-current-date/#post-5425867)
 * no sorry its local.
 * today, abs, manual input…nothing works for me. the default value for the date
   field ist 01/01/1970.
 * you see in my first post, that the field is already hidden…
 * Field1 date blank [] class hidden
    Field2 date input [01/10/2014]
 * Field1 – Field2 = 16344
 * 16344 is the calculated value of days between these two date. abs brings the 
   same result -.- so the date of today is in the year 1970.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/today-or-current-date/#post-5425870)
 * Hi,
 * Please, try entering the value 0 in the “Default date” attribute of the date 
   field. If this option does not work in your case, I will need access to your 
   form, to check the issue in detail.
 * Best regards.
 *  Thread Starter [eleist](https://wordpress.org/support/users/eleist/)
 * (@eleist)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/today-or-current-date/#post-5425993)
 * i set it up on an other installtion and it worked….solved…but even dont know 
   why the date has changed to 1970.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/today-or-current-date/#post-5425994)
 * Hi,
 * I’m sorry, but without check the form inserted in the page, I can’t help you 
   to detect the cause of date change, but if you have been able to solve the issue,
   congratulations, it’s a good news 😉
 * Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘TODAY() or current date’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/today-or-current-date/#post-5425994)
 * Status: resolved