date calculation | WordPress.org

[ad_1]

Hello @ajaysingh121

Assuming you have the fieldname1 date field for entering birthdate, the equation would be:

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

Best regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer