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
Dhaval KDhaval K 

Get the day from $Flow.CurrentDate

Hi All,

Can we get the day from $Flow.CurrentDate in flows?
Actually I want to use this as below formula: 
AND(DAY(today()) = 19).

Thanks!
Best Answer chosen by Dhaval K
Dhruba BoseDhruba Bose
In FLOW , create a formula variable of number type with 0 decimal Places and use below formula

DAY({!$Flow.CurrentDate}) 

All Answers

Dhruba BoseDhruba Bose
There is a Global Variable in FLOW for today's date!
Create a Date variable in FLOW and assign the value as {!$Flow.CurrentDate}

For more details on the Global variable in FLOW, check here  (https://help.salesforce.com/s/articleView?id=sf.flow_ref_resources_system_variables.htm&type=5)
Dhaval KDhaval K
Thanks for your response.
With the Date variable in FLOW "November 19, 2021" this value was received. But I want to get only 19 only to compare dates.
Dhruba BoseDhruba Bose
In FLOW , create a formula variable of number type with 0 decimal Places and use below formula

DAY({!$Flow.CurrentDate}) 
This was selected as the best answer
Dhruba BoseDhruba Bose
If the above solution helps you, please mark it as the best answer.

Thanks
Gary RalstonGary Ralston
Hi Dhaval,

Yes, you can get the day from $Flow.CurrentDate in Salesforce flows using the "DAY" function. Here's an example of how to do it:
  • Create a new formula resource in your flow.
  • In the formula editor, enter the following formula: DAY($Flow.CurrentDate)
Save the formula resource and use it in your flow to get the day from the current date.

If you are interested in learning more about Salesforce flow variables, I recommend visiting https://arrify.com/salesforce-flow-variables/ for a comprehensive guide on flow variables. This guide includes information on creating them, their uses, and best practices.