today
Provides the current date string according to the current clock. If no time zone is provided, the default time zone will be used.
Syntax
today()
today(timeZone)
Parameters
Parameter | Type | Description |
---|---|---|
timeZone | ZoneId | The time zone. |
Returns
The current date string.
Examples
println today()
println today(timeZone("UTC"))
- Log