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 date and time from a particular time zone to a local date and time.
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()
dtParis is DateTime = DateTimeTimeZoneToLocal(dtLocal, "Europe/Paris")
Syntax
<Result> = DateTimeTimeZoneToLocal(<DateTime> , <Time zone>)
<Result>: Character string
Local date and time in "YYYYMMDDHHmmSSCCC" format.
<DateTime>: DateTime or character string in "YYYYMMDDHHmmSSCCC" format
Date and time from the <Time zone> to convert.
<Time zone>: Character string
Name of the time zone in the "tz" database (or Olson database) that corresponds to the date and time passed as parameters.
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.
WEBDEV - Browser code The time zone name is not recognized in Internet Explorer. In this case, a JavaScript error appears..
Component: wd290std.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/06/2024

Send a report | Local help