Following commands are helpful to work with dates in action logic editor. These date commands support a standard set of date formats.
- mm/dd/yyyy
- mm/dd/yy
- dd/mm/yyyy
- dd/mm/yy
- dd mmm yyyy
If you have a requirement to work with a format that is not listed, use the command for date format conversion.
Find Current Date
Get Current Date
Returns current date in the given format. Supports date formats: mm/dd/yyyy, mm/dd/yy, dd/mm/yyyy, dd/mm/yy, dd mmm yyyy.
Format |
Select date format option (mm/dd/yyyy, mm/dd/yy, dd/mm/yyyy, dd/mm/yy, dd mmm yyyy). |
Get Current Time
Returns the current time in a given format(12/24 hrs).
Time Format |
12/24 hour format |
Find Future/Past Date
Add to Current Date
Returns a future or past date relative to current date based on the provided offset. If the number of days is negative, a date in the past is returned. Supports date formats: mm/dd/yyyy, mm/dd/yy, dd/mm/yyyy, dd/mm/yy, dd mmm yyyy.
N |
Number of days to add to current date. Negative value indicates past date. |
Add to Current Time
Returns a future or past time relative to current time based on the provided offset. If the number of hours/minutes is negative, a time in the past is returned.
Time Format |
12/24 hour format |
Add to Date
Returns a future or past date relative to given date, based on the provided offset. If the number of days is negative, a date earlier to the given date is returned. Supports date formats: mm/dd/yyyy, mm/dd/yy, dd/mm/yyyy, dd/mm/yy, dd mmm yyyy.
Date |
Date to which the given number of days to be added. |
Get Days Between
Returns number of days between given dates. Returns positive number if the to date is later than from date, otherwise negative number. Supports date formats: mm/dd/yyyy, mm/dd/yy, dd/mm/yyyy, dd/mm/yy, dd mmm yyyy.
From date |
Starting date |
Parse date components
Get Day from Date
Returns day of given date. Supports date formats: mm/dd/yyyy, mm/dd/yy, dd/mm/yyyy, dd/mm/yy, dd mmm yyyy.
Format |
Date format in which the date input is given |
Get day-of-week
Returns day-of-week for the given date. Supports date formats: mm/dd/yyyy, mm/dd/yy, dd/mm/yyyy, dd/mm/yy, dd mmm yyyy.
Date |
Date string. |
Get day-of-week (short)
Returns day-of-week in short notation for the given date. Supports date formats: mm/dd/yyyy, mm/dd/yy, dd/mm/yyyy, dd/mm/yy, dd mmm yyyy.
Date |
Date string. |
...
Comments
0 comments
Please sign in to leave a comment.