Script Date and Time Functions
The Automation Engine scripting language provides various elements that allow you to retrieve, define and modify dates and times in your scripts.
Date Calculations
-
Adds days to a given date
-
Subtracts days from a given date
-
Adds a period to a given date
-
Subtracts a period from a given date
-
Returns the next date based on calendar conditions
-
Returns the difference in days between two dates
-
Returns the first day of the period for a given date
-
Returns the last day of the period for a given date
Time Calculations
-
Adds two times
-
Subtracts a time from another time
-
Adds time to a timestamp
-
Subtracts time from a timestamp
-
Returns the difference in time between two times
Return System Dates and Times
-
Returns the current date at the beginning of script processing
-
Returns the current date
-
Returns the logical date
-
Returns the current time at the beginning of script processing
-
Returns the current time of day
-
Returns the current date and time
Convert Dates and Formats
-
Converts a date to another date format
-
Converts a date and time for use in another time zone
-
Returns the day of the year for a date
-
Returns the calendar week for a date
-
Returns the day of the week for date as a number
-
Returns the day of the week for a date as an abbreviation
-
Extracts the year from a given date
Validate Dates and Times
-
Checks if a date is included in a Calendar Event
-
Checks if a date is valid
-
Checks if a time is valid