Table of contents
TOC
Collapse the table of content
Expand the table of content

DateTime.AddZone

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

About

Adds the timezonehours as an offset to the input datetime value and returns a new datetimezone value.

DateTime.AddZone(dateTime as nullable datetime, timezoneHours as number, optional timezoneMinutes as nullable number) as nullable datetimezone  

Arguments

ArgumentDescription
dateTimeA DateTime to modify.
timezoneHoursThe hours to add.
optional timezoneMinutesThe minuts to add.

Example

DateTime.AddZone(#datetime(2010, 5, 4, 6, 5, 5), 8) equals #datetimezone(2010, 5, 4, 6, 5, 5, 8, 0)  
© 2018 Microsoft