DateTimeZone.LocalNow

About

Returns a DateTime value set to the current system date and time.

Syntax

DateTimeZone.LocalNow() as datetimezone  

Remarks

  • The return value contains timezone information representing the local timezone.

Example

DateTimeZone.LocalNow() equals 2011-02-20T22:19:38-08:00