Comment on page
DateTimeZone.From
Creates a datetimezone from the given value.
function (optionalvalue
as nullable any, optionalculture
as nullable any) as nullable any
Returns a
datetimezone
value from the given value
. If the given value
is null
, DateTimeZone.From
returns null
. If the given value
is datetimezone
, value
is returned. Values of the following types can be converted to a datetimezone
value: If
value
is of any other type, an error is returned.DateTimeZone
Convert
"2020-10-30T01:30:00-08:00"
to a datetimezone
value.DateTimeZone.From("2020-10-30T01:30:00-08:00")
datetimezone(2020, 10, 30, 01, 30, 00, -8, 00)
Last modified 5yr ago