Get Current Date

Applies to ReadyAPI 3.52, last modified on April 18, 2024

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