Title: date calculation
Last modified: April 3, 2023

---

# date calculation

 *  Resolved [ajaysingh121](https://wordpress.org/support/users/ajaysingh121/)
 * (@ajaysingh121)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/date-calculation-7/)
 * how we can evaluate the equation, I want to input in the calendar only the year
   and in the result show today’s date -the user enters the date in the year plus
   1-year show
 * **Korean age = (current year – year of birth) + 1**

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/date-calculation-7/#post-16620568)
 * Hello [@ajaysingh121](https://wordpress.org/support/users/ajaysingh121/)
 * Assuming you have the fieldname1 date field for entering birthdate, the equation
   would be:
 *     ```wp-block-code
       DATEDIFF(NOW(), fieldname1, 'dd-mm-yyyy', 'y')['years']+1
       ```
   
 * Learn more about the Dat/Times operations by reading the following section in
   the plugin documentation:
 * [https://cff.dwbooster.com/documentation#datetime-module](https://cff.dwbooster.com/documentation#datetime-module)
 * Best regards.
 *  Thread Starter [ajaysingh121](https://wordpress.org/support/users/ajaysingh121/)
 * (@ajaysingh121)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/date-calculation-7/#post-16620882)
 * in the calendar, I want to only the year required, not month and day.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/date-calculation-7/#post-16620913)
 * Hello [@ajaysingh121](https://wordpress.org/support/users/ajaysingh121/)
 * In this case, you should not use a calendar field. You can use a DropDown field
   with the years list or a number field to enter the year in which the user was
   born, and the equation would be:
 *     ```wp-block-code
       ABS(YEAR(TODAY()) - fieldname1)+1
       ```
   
 * Best regards.

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

The topic ‘date calculation’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/date-calculation-7/#post-16620913)
 * Status: resolved