function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AbAb 

Wrong caluclation of date

Hello,

I have a formula which gives output age as 33 years old instread of 32
the formula
Age__c = 33
YEAR(TODAY()) -  year(PersonBirthdate)
PersonBirthdate =
PersonBirthdate is standard field
 
Best Answer chosen by Ab
VinayVinay (Salesforce Developers) 
Hi Sandrine,

This seem to be expected result, By default, this will set the time to Greenwich Mean Time (GMT),  Can you check user time zone?

https://help.salesforce.com/s/articleView?id=sf.formula_using_date_datetime.htm&type=5

Thanks,