Date Operations

Keyword: GETCURRENTDAY

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.

Find the snippet of the keyword below:

In the above example, after the test case debug, {getCurrentDay} variable contains “Monday”.

Keyword: GETCURRENTDATE

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.

Find the snippet of the keyword below:

In the above example, after the test case debug, {result} variable contains “28/Jul/2017”.

Keyword: GETCURRENTTIME

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.

Find the snippet of the keyword below:

In the above example, after the test case debug, {result} variable contains “14:18:35”.

Keyword: GETCURRENTDATEANDTIME

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.

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”.

Keyword: GETCURRENTDAYDATEANDTIME

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.

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”.

Keyword: DATEADDITION

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.

Find the snippet of the keyword below:

In the above example, after the test case debug, {result} variable contains “12/04/2016”.

Keyword: DATECOMPARE

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.

Find the snippet of the keyword below:

In the above example, after the test case debug, {result} variable contains “False”.

Keyword: DATEDIFFERENCE

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.

Find the snippet of the keyword below:

In the above example, after the test case debug, {result} variable contains “23/07/2017”.

Keyword: CHANGEDATEFORMAT

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.

Find the snippet of the keyword below:

In the above example, after the test case debug, {result} variable contains “12/28/2017”.

Keyword: MONTHADDITION

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.

Find the snippet of the keyword below:

In the above example after the test case debug, {result} variable contains “28/05/2018”.

Keyword: YEARADDITION

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.

Find the snippet of the keyword below:

In the above example, after the test case debug, {result} variable contains “28/12/2022”.

Last updated