DateTimeZone.LocalNow
The computer's date and time right now, with its offset from UTC.
Group: Dates and times. Power Query M has it too: a query that uses it is written as in Power BI.
Syntax
DateTimeZone.LocalNow() as datetimezone
It takes no parameters.
Returns
datetimezone. What the computer's clock says now, with the computer's offset.
Remarks
- The offset is the computer's: +01:00 for Oslo in winter, +02:00 in summer. A server elsewhere answers with its own.
- Each call reads the clock again;
DateTimeZone.FixedLocalNowreads it once per evaluation.
Examples
Now, with the offset
DateTimeZone.LocalNow()
#datetimezone(2026, 11, 8, 15, 42, 28, 1, 0)
It is a datetimezone
DateTimeZone.LocalNow() is datetimezone
true
Related functions
DateTimeZone.FixedLocalNow, DateTimeZone.UtcNow, DateTime.LocalNow.