You are here:
end_of_day
Returns the last second for a specific date or time value in Salesforce Spiff. The return format is YYYY-MM-DDT:hour:minute:second:millsecond, plus or minus the hours and minutes away from Coordinated Universal Time (UTC).

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
Returns the last second for a specific date or time value in Salesforce Spiff. The return format is YYYY-MM-DDT:hour:minute:second:millsecond, plus or minus the hours and minutes away from Coordinated Universal Time (UTC).
| Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions |
| Available for an additional cost in: Professional Edition with Web Services API Enabled |
end_of_day(date_or_time)| Argument | Required? | Description |
|---|---|---|
| date_or_time | Required | The Date or Date & Time value to evaluate. This argument supports any date functions. |
Return the end of the day that represents the end of the statement period, using the EndOfPeriod helper function.
=beginning_of_day(EndOfPeriod)Find the end of the day from a text-formatted date, which you can convert to a proper Date data type with the date() function.
=end_of_day(date("2024-01-31"))Create a data filter that return all deals created between January 1 and 31. Combine this function with beginning_of_day().
CreatedAt >= beginning_of_day(date("2024-01-01")) AND CreatedAt <= end_of_day(date("2024-01-31"))Update the previous data filter with dynamic statement period dates instead of hard-coded text values.
CreatedAt >= beginning_of_day(date(statement_period.start_date)) AND CreatedAt <= end_of_day(date(statement_period.end_date))
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.