Get Current Date, Time
Last updated
Was this helpful?
Last updated
Was this helpful?
This is a pre-built action, located under the @Generic element category, instructs the Avo Assure to fetch the current date and time from the system and store the result in the dynamic variable.
Input Value: <format of date and time>
<format of data and time> (Required)
Accepted input formats of Date and Time: 1. dd/MM/yyyy HH:mm:ss
2. MM/dd/yyyy HH:mm:ss
3. dd/MMM/yyyy HH:mm:ss
4. MMM/dd/yyyy HH:mm:ss
Output Value:
<Dynamic Variable>
This variable stores the current Date and Time in specify format
<Dynamic Variable> (Optional)
This variable stores the status as true or false
Example:
Fetch the current system date and time in a specified format
The Get Current Date, Time action uses the value from the Input Value column (e.g.,dd/MM/yyyy HH:mm:ss ) to return the current system date and time in the given format. The result is stored in the {Current Datetime} variable, and the action status is saved in the {Status} variable with the following possible values:
True – if the date and time are retrieved successfully
False – if the action fails
Knowledge Bites: Below are some examples of different dates formatted scenarios
dd/MM/yyyy HH:mm:ss
dd/MM/yyyy HH:mm:ss
15/04/2025 02:02:28
MM/dd/yyyy HH:mm:ss
MM/dd/yyyy HH:mm:ss
04/15/2025 02:03:41
dd/MMM/yyyy HH:mm:ss
dd/MMM/yyyy HH:mm:ss
15/Apr/2025 02:04:52
MMM/dd/yyyy HH:mm:ss
MMM/dd/yyyy HH:mm:ss
Apr/15/2025 02:06:16