Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 780 Bytes

File metadata and controls

32 lines (21 loc) · 780 Bytes
description Learn more about: DateTimeZone.ToLocal
title DateTimeZone.ToLocal
ms.subservice m-source
ms.topic reference

DateTimeZone.ToLocal

Syntax

DateTimeZone.ToLocal(dateTimeZone as nullable datetimezone) as nullable datetimezone

About

Changes timezone information of the datetimezone value dateTimeZone to the local timezone information. If dateTimeZone does not have a timezone component, the local timezone information is added.

Example 1

Change timezone information for #datetimezone(2010, 12, 31, 11, 56, 02, 7, 30) to local timezone (assuming PST).

Usage

DateTimeZone.ToLocal(#datetimezone(2010, 12, 31, 11, 56, 02, 7, 30))

Output

#datetimezone(2010, 12, 31, 12, 26, 2, -8, 0)