Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Below is the The below code for getting gets datetime for the New Zealand timezone. For more info information on DateTime and available Timezones, please check the our API.

Paste code macro
languagegroovy
def todayDateTime = new DateTime()
def nzTimeZone = api.getTimeZone("NZ")
def todayText = todayDateTime.withZone(nzTimeZone).toString("yyyy-MM-dd")

...