Date Operations
Last updated
Last updated
Description: This keyword or action instructs Avo Assure Client to fetch the current day of the system and save the results in the output variable.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
getCurrentDay
NA
{Variable}
NA
Find the snippet of the keyword below:
In the above example, after the test case debug, {getCurrentDay} variable contains “Monday”.
Description: This keyword or action instructs Avo Assure Client to fetch the system's current date based on the given format and save the results in the output variable.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
getCurrentDate
<date format>
{Variable}
Supported Date Formats:
1. dd/MM/yyyy 2. MM/dd/yyyy
3. dd/MMM/yyyy 4. MMM/dd/yyyy
Find the snippet of the keyword below:
In the above example, after the test case debug, {result} variable contains “28/Jul/2017”.
Description: This keyword or action instructs Avo Assure Client to fetch the system's current time based on the given format and save the results in the output variable.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
getCurrentTime
<time format>
{Variable}
Supported Time Format-
HH:mm:ss
Find the snippet of the keyword below:
In the above example, after the test case debug, {result} variable contains “14:18:35”.
Description: This keyword or action instructs Avo Assure Client to fetch the current date and time of the system based on the given format and save the results in the output variable.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
getCurrentDateAndTime
<date and time format>
{Variable}
Supported Date and Time Formats:
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
Find the snippet of the keyword below:
In the above example, after the test case debug, {result} variable contains “07/28/2017 14:18:35”.
Description: This keyword or action instructs Avo Assure Client to fetch the current day, date, and time of the system based on the given format and save the results in the output variable.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
getCurrentDayDateAndTime
NA
{Variable}
NA
Find the snippet of the keyword below:
In the above example, after the test case debug, {getCurrentDayDateAndTime} variable contains “Monday 23/03/2020 09:36:19”.
Description: This keyword or action instructs Avo Assure Client to add the given date with the days count and save the results in the output variable.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
dateAddition
<date>; <number of days>; <current date format>
{Variable}
Supported Date Formats:
dd/MM/yyyy
MM/dd/yyyy
dd/MMM/yyyy
MMM/dd/yyyy
Find the snippet of the keyword below:
In the above example, after the test case debug, {result} variable contains “12/04/2016”.
Description: This keyword or action instructs Avo Assure Client to compare the date with a variable containing the date (in the same format) and save the results (True/False) in the output variable.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
dateCompare
<date1>; <date2>; <date format>
{Variable}
Supported Date Formats:
dd/MM/yyyy
MM/dd/yyyy
dd/MMM/yyyy
MMM/dd/yyyy
Find the snippet of the keyword below:
In the above example, after the test case debug, {result} variable contains “False”.
Description: This keyword or action instructs Avo Assure Client to perform the difference of the two given dates or the given date and the number of days count and save the resultant date in the variable.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
dateDifference
<date>; <number of days OR date>; <current date format>
{Variable}
Supported Date Formats:
dd/MM/yyyy
MM/dd/yyyy
dd/MMM/yyyy
MMM/dd/yyyy
Find the snippet of the keyword below:
In the above example, after the test case debug, {result} variable contains “23/07/2017”.
Description: This keyword or action instructs Avo Assure Client to change the format of the given date to the format provided and save the results in the output variable.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
changeDateFormat
<date>; <current format>; <required format>
{Variable}
Supported Date Formats:
dd/MM/yyyy
MM/dd/yyyy
dd/MMM/yyyy
MMM/dd/yyyy
Find the snippet of the keyword below:
In the above example, after the test case debug, {result} variable contains “12/28/2017”.
Description: This keyword or action instructs Avo Assure Client to add the given month with the month count and save the results in the output variable.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
monthAddition
<date>; <number of months>; <current date format>
{Variable}
Supported Date Formats:
dd/MM/yyyy
MM/dd/yyyy
dd/MMM/yyyy
MMM/dd/yyyy
Find the snippet of the keyword below:
In the above example after the test case debug, {result} variable contains “28/05/2018”.
Description: This keyword or action instructs Avo Assure Client to add the given year with the year count and save the results in the output variable.
Keyword
Input Syntax
Output Syntax
Supported Input Formats
yearAddition
<date>; <number of years>; <current date format>
{Variable}
Supported Date Formats:
dd/MM/yyyy
MM/dd/yyyy
dd/MMM/yyyy
MMM/dd/yyyy
Find the snippet of the keyword below:
In the above example, after the test case debug, {result} variable contains “28/12/2022”.