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
Kathleen Munetz-Vasquez 3Kathleen Munetz-Vasquez 3 

I need help writing a day formula in Salesforce.

I am currently creating three separate fields in Salesforce for the created date; month, day, and year. I need help with the day formula. Thanks!
Best Answer chosen by Kathleen Munetz-Vasquez 3
SRI HARSHA 32SRI HARSHA 32
Hi Kathleen,

Use the functions DAY( date ), MONTH( date ), and YEAR( date ) to return their respective numerical values. Replace date with a value of type Date (e.g. TODAY()).

you will be using : DAY( Today()) to get today's day.

Please see this link https://help.salesforce.com/articleView?id=formula_examples_dates.htm&type=5.
 

All Answers

SRI HARSHA 32SRI HARSHA 32
Hi Kathleen,

Use the functions DAY( date ), MONTH( date ), and YEAR( date ) to return their respective numerical values. Replace date with a value of type Date (e.g. TODAY()).

you will be using : DAY( Today()) to get today's day.

Please see this link https://help.salesforce.com/articleView?id=formula_examples_dates.htm&type=5.
 
This was selected as the best answer
Kathleen Munetz-Vasquez 3Kathleen Munetz-Vasquez 3
Hi SRI ,

This is exactly what I needed. Thank you!