Get Current Date

Applies to ReadyAPI 3.10, last modified on October 07, 2021

You can use Groovy scripts to get the current date.

Where to use

You can use this script anywhere in ReadyAPI.

Example

Groovy

def today = new Date()
def formattedDate = today.format("dd/MM/yyyy")
log.info(formattedDate)

See Also

Groovy Scripting Samples
Scripting

Highlight search results