Book demo
Start trial
Book demo
Start trial

The LEAP

Automation insights and productivity tips from LEAPWORK.

All Posts

How to Automate Date and Time Testing

Dates and timestamps are important in most test automation scenarios. For instance, when testing user sign-up flows, entering a birthday or social security number is often required. Or when validating expiration dates during web content testing, generating a date/time value exactly one week from today might be needed.

Working with dates and timestamps in LEAPWORK is very easy and flexible, using the Generate date/time, Offset date/time and Set date/time building blocks. Here's a simple example of how to get today's date and then add one year to it:

Get today's date and offset by a year using LEAPWORK

Below is another example in LEAPWORK, which generates a date that is the first day of a random month in the year 2016:

Get first day of a random month in the year 2016 using LEAPWORK

Everything you need for codeless test automation

Learn more about codeless test automation in our guide to reducing risk, lowering costs, and driving value with test automation.

 

CTA-StartTrial-2

Claus Topholt
Claus Topholt
CTO and co-founder of LEAPWORK.

Related Posts

[WHITEPAPER] Test Automation: The Codeless Answer

Today, digital transformation affects businesses in every market. Either they are driving it or being driven by it. As new business models emerge and customer demands keep increasing, enterprises everywhere struggle to stay relevant.

[Factsheet] 9 Reasons to Use No-code Automation Tools

In the jungle of automation tools, it can be complicated to select the right one for your enterprise. This is why we have listed 9 reasons to choose no-code automation tools in a factsheet, just for you. No-code automation tools speed up business processes and reduce errors while limiting boring and repetitive work. 

Codeless Selenium: How to automate with Selenium without coding

If you’re a highly skilled programmer wanting to automate web applications, and you love to spend time on writing test scripts, Selenium is probably a good test automation tool for you.