ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Date and time functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Converts a local date and time to the date and time in a particular time zone.
Example
dhLocale is DateTime = Now()
dhNewYork is DateTime = DateTimeLocalToTimeZone(dhLocale, "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", ...
Component: wd300std.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help