Get Current Date

Applies to ReadyAPI 3.56, last modified on November 21, 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