2

I am trying to access the current date and found the dates API. There seems to be a method all the way at the bottom of the docs that will return the current date and time just like I want but I think there is a typo. I tried guessing what the method name was with "datetime", "time", "now", "current", even the word "convenience" since that is the first word in the description of the method but none of these seemed to work. Any idea how to use this method?

bigchungus
  • 217
  • 1
  • 8

1 Answers1

3

Try this var currentTime = dates.ZonedDateTime.now().getDateTime();

Thanks for raising this issue. We will raise internal visibility on this issue to document it better.