ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Date and time functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Converts a local date and time to the date and time in a particular time zone.
New in version 2024
IOS Widget This function is now available in iOS widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
Mac Catalyst This function is now available in Catalyst mode.
Example
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.
Component: wd290std.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/20/2023

Send a report | Local help