DatePart
Returns the requested part (such as day, second, or quarter) of the local date.
Syntax
DatePart(part,date)
Enabled for
Search/Dashboard | No |
Business Rules | Yes |
Quick Actions | Yes |
Workflow Objects | Yes |
Reports | No |
Parameters
part |
The part of the day to return. Must be surrounded by quotes (" "). The following types are supported:
|
date |
The date for which you want to return a part. |
Return Value
Number value.
Example
$(DatePart("day",CreatedDate()))
If CreatedDate() = Dec 9, 2013, this example returns 9 because the input has 9 for the value of the day.
Another example: