Get Current Date

Applies to ReadyAPI 3.57, last modified on December 20, 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