|
|
|
|
DateTimeLocalToTimeZone (Function) In french: DateHeureLocaleVersFuseau Converts a local date and time to the date and time in a particular time zone. New in version 28
dtLocal is DateTime = Now() dtNewYork is DateTime = DateTimeLocalToTimeZone(dtLocal, "America/New_York")
Syntax
<Result> = DateTimeLocalToTimeZone(<DateTime> , <Time zone>)
<Result>: Character string Date and time in "YYYYMMDDHHmmSSCCC" format in the specified time zone. <DateTime>: DateTime or character string in "YYYYMMDDHHmmSSCCC" format Local date and time to convert. <Time zone>: Character string Name of the time zone in the "tz" database (or Olson database) that must be used to convert the <DateTime> parameter. This name must correspond to the full name of the time zone defined by the IANA Time Zone Database. For example: "Europe/Paris", "Europe/London", "America/New_York", etc.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|