dateUtc
  • 30 Oct 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

dateUtc

  • Dark
    Light
  • PDF

Article summary

Description

Type: DateTime

Returns the current date in Coordinated Universal Time (UTC).


Examples

// display the current UTC date in the debugger
debug.log(tools.dateUtc);

Remarks

This is the current date in Coordinated Universal Time (UTC) format.

If you want the date measured in the user's local time instead, use tools.date.


What's Next