LJW ServerSuite is a COM component instantiated via Server.CreateObject. It is installed and provided at no extra cost on all our shared and dedicated ASP Classic hosting plans, and can be licensed to be installed on your own servers too. You can use it on 32-bit and 64-bit Application Pools under Microsoft IIS.
This compiled component offers excellent performance and eliminates the need for lengthy, complex, unreliable, and difficult-to-maintain VBScript or JScript routines, especially when dealing with Daylight Saving Time (DST).
Each web hosting server is set to a single time zone, and all websites depend on it. The Microsoft IIS web server does not offer any settings to define the time zone specifically applicable to an ASP Classic website.
Most hosting providers advise you to find your own workarounds. Without this component, you would have to develop your own time zone conversion routines using VBScript/JScript, PHP, and the .NET platform. This last option is unacceptable for ASP Classic developers because it requires you to know how to code on the .NET platform, which is very different from the ASP Classic you use daily. Since the ASP Classic and .NET platforms cannot communicate natively, you would have to create artificial bridges between the two platforms using slow and inefficient XMLHttp requests.
For all these reasons, Le Juste Web developed the LJW ServerSuite component to allow you to convert your dates directly from the ASP Classic source code.
LJW ServerSuite provides the following features:
The LJW ServerSuite component provides the following COM objects:
Object is instantiated as follows:
<%
Dim o_LJWSS_TZ : Set o_LJWSS_TZ = Server.CreateObject("LJW_ServerSuite_V21.TimeZone")
%>Dim o_LJWSS_TZ : Set o_LJWSS_TZ = CreateObject("LJW_ServerSuite_V21.TimeZone")The TimeZone object provides the following methods:
Returns the internal identifier of the TimeZone class component.
1.0.0.0
2.1.4.1426
Returns a value of type String.
No parameter
Response.Write "The TimeZone object has the ClassID : " & o_LJWSS_TZ.ClassID() & "<br>"Returns the component's version/revision.
1.0.0.0
2.1.4.1426
Returns a value of type String.
No parameter
Response.Write "The version/revision of the TimeZone object is : " & o_LJWSS_TZ.Version() & "<br>"Returns the component's bitness.
1.0.0.0
2.1.4.1426
Returns a value of type String.
Returns x86 for 32-bit, and x64 for 64-bit.
No parameter
Response.Write "The component is currently running on a : " & o_LJWSS_TZ.Bitness() & " platform<br>"Returns the identifier of the time zone currently in effect on the Windows system. (e.g. W. Europe Standard Time, UTC, …)
1.0.0.0
2.1.4.1426
Returns a value of type String.
Returns the time zone identifier in technical format (Windows ID), conforming to the system's time zone list.
No parameter
Response.Write "The Windows server time zone is set to : " & o_LJWSS_TZ.SystemTimeZoneIdentifier() & "<br>"Returns the effective time difference (in minutes) between an arbitrary time zone and the server's current time zone, at the time of the call (including summer/winter time where applicable).
1.0.0.0
2.1.4.1426
Returns a numeric value of type Integer.
Returns a signed integer if the Windows system time zone is offset from UTC. (e.g. 60, -180, …)
Returns 0 otherwise.
No parameter
Response.Write "The server's timezone is offset by " & o_LJWSS_TZ.SystemTimeZoneOffset() & " minutes compared to UTC<br>"Returns whether the current time zone on the Windows system is a UTC zone (without time offset or DST daylight saving time adjustment rule).
1.0.0.0
2.1.4.1426
Returns a Boolean value of type Boolean.
Returns True if the Windows system time zone is UTC, False otherwise.
No parameter
Response.Write "Is the server's timezone UTC? " & o_LJWSS_TZ.SystemTimeZoneIsUtc() & "<br>"Returns the time difference (in minutes) between an arbitrary time zone and the server's current time zone, at the supplied date/time.
1.0.0.0
2.1.4.1426
Returns a numeric value of type Integer.
Returns a signed integer if the time zone offset was successfully determined. (e.g. 60, -180, …)
Returns -99999 if an error occurred during the time zone offset calculation.
The function calculates and returns the number of minutes of time difference between the arbitrary time zone supplied in inTimeZone and the Windows system time zone at the time represented by inDateTimeValue. The format in which the date inDateTimeValue is supplied is specified in the inDateTimeFormat parameter.
If the inDateTimeFormat parameter is absent, error 80070057 (-2147024809) is returned.
The function accepts the following parameters:
| Index | Name | Required | Type | Default value | Description | Examples |
|---|---|---|---|---|---|---|
| 1 | inDateTimeFormat | Required | String or the vbDate constant | None | Format of supplied date. Refer to the table : Dates formats |
|
| 2 | inDateTimeValue | Optional | Date / String | Current UTC time | Value of the supplied date. Refer to the table : Dates values |
|
| 3 | inTimeZone | Optional | String | "UTC" | Time zone of the supplied moment. Refer to the list : Supported time zones |
|
Empty. Refer to the section about Optional parameters.'Time difference (at the time of the call) between the "West Europe Standard Time" zone and the Windows server's time zone
Response.Write o_LJWSS_TZ.GetOffsetFromSystem(vbDate, Now(), "W. Europe Standard Time")
'Time difference (on the specified date and time) between the "West Europe Standard Time" zone and the Windows server's time zone
Response.Write o_LJWSS_TZ.GetOffsetFromSystem("yyyy/MM/dd HH:mm:ss", "2026/01/03 13:34:56", "W. Europe Standard Time")
'Time difference (on the specified date) between the "Pacific Standard Time" zone and the Windows server's time zone
Response.Write o_LJWSS_TZ.GetOffsetFromSystem("yyyy/MM/dd", "2026/01/03", "Pacific Standard Time")
Returns the time difference (in minutes) between an arbitrary time zone and UTC, at the supplied date/time.
1.0.0.0
2.1.4.1426
Returns a numeric value of type Integer.
Returns a signed integer if the time zone offset was successfully determined. (e.g. 60, -180, …)
Returns -99999 if an error occurred during the time zone offset calculation.
The function calculates and returns the number of minutes of time difference between the arbitrary time zone supplied in inTimeZone and the UTC time zone at the time represented by inDateTimeValue. The format in which the date inDateTimeValue is supplied is specified in the inDateTimeFormat parameter.
If the inDateTimeFormat parameter is absent, error 80070057 (-2147024809) is returned.
The function accepts the following parameters:
| Index | Name | Required | Type | Default value | Description | Examples |
|---|---|---|---|---|---|---|
| 1 | inDateTimeFormat | Required | String or the vbDate constant | None | Format of supplied date. Refer to the table : Dates formats |
|
| 2 | inDateTimeValue | Optional | Date / String | Current UTC time | Value of the supplied date. Refer to the table : Dates values |
|
| 3 | inTimeZone | Optional | String | "UTC" | Time zone of the supplied moment. Refer to the list : Supported time zones |
|
Empty. Refer to the section about Optional parameters.'Time difference (at the time of the call) between Western Europe Standard Time and UTC
Response.Write o_LJWSS_TZ.GetOffsetFromUtc(vbDate, Now(), "W. Europe Standard Time")
'Time difference (on the specified date and time) between Western Europe Standard Time and UTC
Response.Write o_LJWSS_TZ.GetOffsetFromUtc("ISO8601", "2026-01-03T12:34:56Z", "W. Europe Standard Time")
'Time difference (on the specified date) between Pacific Standard Time and UTC
Response.Write o_LJWSS_TZ.GetOffsetFromUtc("yyyy/MM/dd", "2026/01/03", "Pacific Standard Time")Returns the time difference (in minutes) between an arbitrary time zone 1 and a comparison arbitrary time zone 2, at the supplied date/time.
1.0.0.0
2.1.4.1426
Returns a numeric value of type Integer.
Returns a signed integer if the time zone offset was successfully determined. (e.g. 60, -180, …)
Returns -99999 if an error occurred during the time zone offset calculation.
The function calculates and returns the number of minutes of time difference between the arbitrary time zone 1 supplied in inTimeZone and the comparison arbitrary time zone 2 supplied in inComparisonTimeZone at the time represented by inDateTimeValue. The format in which the date inDateTimeValue is supplied is specified in the inDateTimeFormat parameter.
If the inDateTimeFormat parameter is absent, error 80070057 (-2147024809) is returned.
The function accepts the following parameters:
| Index | Name | Required | Type | Default value | Description | Examples |
|---|---|---|---|---|---|---|
| 1 | inDateTimeFormat | Required | String or the vbDate constant | None | Format of supplied date. Refer to the table : Dates formats |
|
| 2 | inDateTimeValue | Optional | Date / String | Current UTC time | Value of the supplied date. Refer to the table : Dates values |
|
| 3 | inTimeZone | Optional | String | "UTC" | Time zone 1 of the supplied moment. Refer to the list : Supported time zones |
|
| 4 | inComparisonTimeZone | Optional | String | "UTC" | Comparison time zone 2. Refer to the list : Supported time zones |
|
Empty. Refer to the section about Optional parameters.'Time difference (at the specified date and time) between "Western Europe Standard Time" and "Turkey Standard Time"
Response.Write o_LJWSS_TZ.GetOffsetFromTimeZone("ISO8601", "2026-01-03T12:34:56Z", "W. Europe Standard Time", "Turkey Standard Time")
'Time difference (at the specified date and time) between "Pacific Standard Time" and "Romance Standard Time"
Response.Write o_LJWSS_TZ.GetOffsetFromTimeZone(vbDate, #2026/01/03 12:34:56#, "Pacific Standard Time", "Romance Standard Time")Convert a date/time expressed in the server's current time zone to an arbitrary time zone.
1.0.0.0
2.1.4.1426
Returns the converted date/time into a variable of type Date or String.
The function converts the date/time specified in inDateTimeValue (assumed to be expressed in the time zone currently in effect on the Windows server) to the arbitrary time zone supplied in outTimeZone, and returns the converted date in the format specified in the outDateTimeFormat parameter. The format in which the date inDateTimeValue is supplied is specified in the inDateTimeFormat parameter. The format in which the converted date is returned is specified in the outDateTimeFormat parameter.
If the inDateTimeFormat parameter is absent, error 80070057 (-2147024809) is returned.
The function accepts the following parameters:
| Index | Name | Required | Type | Default value | Description | Examples |
|---|---|---|---|---|---|---|
| 1 | inDateTimeFormat | Required | String or the vbDate constant | None | Format of the date to convert. Refer to the table : Dates formats |
|
| 2 | inDateTimeValue | Optional | Date / String | Current UTC time | Value of the date to convert. Refer to the table : Dates values |
|
| 3 | outTimeZone | Optional | String | "UTC" | Time zone to which to convert the date. Refer to the list : Supported time zones |
|
| 4 | outDateTimeFormat | Optional | String or the vbDate constant | vbDate constant | Format in which to return the converted date. Refer to the table : Dates formats |
|
Empty. Refer to the section about Optional parameters.'Convert the current server date/time to "West Europe Standard Time"'
'Allows you to convert the current system date to another time zone
convertedDateTime = o_LJWSS_TZ.ConvertSystemToTimeZone(vbDate, Now(), "W. Europe Standard Time", vbDate)
Response.Write convertedDateTime 'Full date, converted
'Extract the date only
Response.Write DateValue(convertedDateTime)
'Extract the time only
Response.Write TimeValue(convertedDateTime)
'Convert the supplied date/time (expressed in the Windows system time zone) to "Western Europe Standard Time"
'- The date to be converted is supplied in a VBScript variable of type String in ISO8601 format.
'- The converted date is returned in a VBScript variable of type Date.
Response.Write o_LJWSS_TZ.ConvertSystemToTimeZone("ISO8601", "2026-01-03T12:34:56Z", "W. Europe Standard Time", vbDate)
'Convert the supplied date/time (expressed in the Windows system time zone) to "Pacific Standard Time"
'- The date to be converted is supplied in a VBScript variable of type Date.
'- The converted date is returned in a VBScript variable of type String in the format "yyyy/MM/dd"
Response.Write o_LJWSS_TZ.ConvertSystemToTimeZone(vbDate, CDate("2026-01-03 12:34:56"), "Pacific Standard Time", "yyyy/MM/dd")Convert a date/time expressed in an arbitrary time zone to the server's current time zone.
1.0.0.0
2.1.4.1426
Returns the converted date/time into a variable of type Date or String.
The function converts the date/time specified in inDateTimeValue (assumed to be expressed in the arbitrary time zone supplied in inTimeZone) to the time zone currently in effect on the Windows server, and returns the converted date in the format specified in the outDateTimeFormat parameter. The format in which the date inDateTimeValue is supplied is specified in the inDateTimeFormat parameter. The format in which the converted date is returned is specified in the outDateTimeFormat parameter.
If the inDateTimeFormat parameter is absent, error 80070057 (-2147024809) is returned.
The function accepts the following parameters:
| Index | Name | Required | Type | Default value | Description | Examples |
|---|---|---|---|---|---|---|
| 1 | inDateTimeFormat | Required | String or the vbDate constant | None | Format of the date to convert. Refer to the table : Dates formats |
|
| 2 | inDateTimeValue | Optional | Date / String | Current UTC time | Value of the date to convert. Refer to the table : Dates values |
|
| 3 | inTimeZone | Optional | String | "UTC" | Time zone of the supplied moment. Refer to the list : Supported time zones |
|
| 4 | outDateTimeFormat | Optional | String or the vbDate constant | vbDate constant | Format in which to return the converted date. Refer to the table : Dates formats |
|
Empty. Refer to the section about Optional parameters.'Convert the supplied date/time (expressed in "West Europe Standard Time") to the Windows system time zone.
'- The date to be converted is supplied in a VBScript variable of type String in ISO8601 format.
'- The converted date is returned in a VBScript variable of type Date.
Response.Write o_LJWSS_TZ.ConvertTimeZoneToSystem("ISO8601", "2026-01-03T12:34:56Z", "W. Europe Standard Time", vbDate)
'Convert the supplied date/time (expressed in "Pacific Standard Time") to the Windows system time zone.
'- The date to be converted is supplied in a VBScript variable of type Date.
'- The converted date is returned in a VBScript variable of type String in the format "yyyy/MM/dd"
Response.Write o_LJWSS_TZ.ConvertTimeZoneToSystem(vbDate, CDate("2026-01-03 12:34:56"), "Pacific Standard Time", "yyyy/MM/dd")Convert a date/time expressed in UTC to an arbitrary time zone.
1.0.0.0
2.1.4.1426
Returns the converted date/time into a variable of type Date or String.
The function converts the date/time specified in inDateTimeValue (assumed to be expressed in the UTC time zone) to the arbitrary time zone supplied in outTimeZone, and returns the converted date in the format specified in the outDateTimeFormat parameter. The format in which the date inDateTimeValue is supplied is specified in the inDateTimeFormat parameter. The format in which the converted date is returned is specified in the outDateTimeFormat parameter.
If the inDateTimeFormat parameter is absent, error 80070057 (-2147024809) is returned.
The function accepts the following parameters:
| Index | Name | Required | Type | Default value | Description | Examples |
|---|---|---|---|---|---|---|
| 1 | inDateTimeFormat | Required | String or the vbDate constant | None | Format of the date to convert. Refer to the table : Dates formats |
|
| 2 | inDateTimeValue | Optional | Date / String | Current UTC time | Value of the date to convert. Refer to the table : Dates values |
|
| 3 | outTimeZone | Optional | String | "UTC" | Time zone to which to convert the date. Refer to the list : Supported time zones |
|
| 4 | outDateTimeFormat | Optional | String or the vbDate constant | vbDate constant | Format in which to return the converted date. Refer to the table : Dates formats |
|
Empty. Refer to the section about Optional parameters.'Convert the supplied date/time (expressed in UTC) to Western Europe Standard Time.
'- The date to be converted is supplied in a VBScript variable of type String in ISO8601 format.
'- The converted date is returned in a VBScript variable of type Date.
Response.Write o_LJWSS_TZ.ConvertUtcToTimeZone("ISO8601", "2026-01-03T12:34:56Z", "W. Europe Standard Time", vbDate)
'Convert the supplied date/time (expressed in UTC) to Pacific Standard Time.
'- The date to be converted is supplied in a VBScript variable of type Date.
'- The converted date is returned in a VBScript variable of type String in the format "yyyy/MM/dd"
Response.Write o_LJWSS_TZ.ConvertUtcToTimeZone(vbDate, CDate("2026-01-03 12:34:56"), "Pacific Standard Time", "yyyy/MM/dd")Convert a date/time expressed in an arbitrary time zone to UTC.
1.0.0.0
2.1.4.1426
Returns the converted date/time into a variable of type Date or String.
The function converts the date/time specified in inDateTimeValue (assumed to be expressed in the arbitrary time zone supplied in inTimeZone) to the UTC time zone, and returns the converted date in the format specified in the outDateTimeFormat parameter. The format in which the date inDateTimeValue is supplied is specified in the inDateTimeFormat parameter. The format in which the converted date is returned is specified in the outDateTimeFormat parameter.
If the inDateTimeFormat parameter is absent, error 80070057 (-2147024809) is returned.
The function accepts the following parameters:
| Index | Name | Required | Type | Default value | Description | Examples |
|---|---|---|---|---|---|---|
| 1 | inDateTimeFormat | Required | String or the vbDate constant | None | Format of the date to convert. Refer to the table : Dates formats |
|
| 2 | inDateTimeValue | Optional | Date / String | Current UTC time | Value of the date to convert. Refer to the table : Dates values |
|
| 3 | inTimeZone | Optional | String | "UTC" | Time zone of the supplied moment. Refer to the list : Supported time zones |
|
| 4 | outDateTimeFormat | Optional | String or the vbDate constant | vbDate constant | Format in which to return the converted date. Refer to the table : Dates formats |
|
Empty. Refer to the section about Optional parameters.'Convert the supplied date/time (expressed in "Western Europe Standard Time") to UTC.
'- The date to be converted is supplied in a VBScript variable of type String in ISO8601 format.
'- The converted date is returned in a VBScript variable of type Date.
Response.Write o_LJWSS_TZ.ConvertTimeZoneToUtc("ISO8601", "2026-01-03T12:34:56Z", "W. Europe Standard Time", vbDate)
'Convert the supplied date/time (expressed in "Pacific Standard Time") to UTC.
'- The date to be converted is supplied in a VBScript variable of type Date.
'- The converted date is returned in a VBScript variable of type String in the format "yyyy/MM/dd"
Response.Write o_LJWSS_TZ.ConvertTimeZoneToUtc(vbDate, DateSerial(2026, 1, 3) + TimeSerial(12, 34, 56), "Pacific Standard Time", "yyyy/MM/dd")Convert a date/time expressed in arbitrary time zone 1 to arbitrary time zone 2.
1.0.0.0
2.1.4.1426
Returns the converted date/time into a variable of type Date or String.
The function converts the date/time specified in inDateTimeValue (assumed to be expressed in the arbitrary time zone 1 supplied in inTimeZone) to an arbitrary time zone 2 supplied in outTimeZone, and returns the converted date in the format specified in the outDateTimeFormat parameter. The format in which the date inDateTimeValue is supplied is specified in the inDateTimeFormat parameter. The format in which the converted date is returned is specified in the outDateTimeFormat parameter.
If the inDateTimeFormat parameter is absent, error 80070057 (-2147024809) is returned.
The function accepts the following parameters:
| Index | Name | Required | Type | Default value | Description | Examples |
|---|---|---|---|---|---|---|
| 1 | inDateTimeFormat | Required | String or the vbDate constant | None | Format of the date to convert. Refer to the table : Dates formats |
|
| 2 | inDateTimeValue | Optional | Date / String | Current UTC time | Value of the date to convert. Refer to the table : Dates values |
|
| 3 | inTimeZone | Optional | String | "UTC" | Time zone 1 of the supplied moment. Refer to the list : Supported time zones |
|
| 4 | outTimeZone | Optional | String | "UTC" | Time zone 2 to which to convert the date. Refer to the list : Supported time zones |
|
| 5 | outDateTimeFormat | Optional | String or the vbDate constant | vbDate constant | Format in which to return the converted date. Refer to the table : Dates formats |
|
Empty. Refer to the section about Optional parameters.'Convert the source date/time (expressed in the "Romance Standard Time" time zone) TO the "Pacific Standard Time" time zone
'- The date to be converted is supplied in a VBScript variable of type String in the format "yyyy/MM/dd HH:mm:ss"
'- The converted date is returned in a VBScript variable of type String in ISO8601 format.
Response.Write o_LJWSS_TZ.ConvertTimeZoneToUtc("yyyy/MM/dd HH:mm:ss", "2026/01/03 13:34:56", "Romance Standard Time", "Pacific Standard Time", "ISO8601")
'Convert the source date/time (expressed in the "Romance Standard Time" time zone) TO the "W. Europe Standard Time" time zone
'- The date to be converted is supplied in a VBScript variable of type String in ISO8601 format.
'- The converted date is returned in a VBScript variable of type Date.
Response.Write o_LJWSS_TZ.ConvertTimeZoneToUtc("ISO8601", "2026-01-03T15:34:56", "Romance Standard Time", "W. Europe Standard Time", vbDate)In methods that accept parameters, some of them are optional. You can skip these optional parameters by using a placeholder. This placeholder can be either the Empty statement or an empty argument between two commas.
When an argument is skipped, the parameter's default value is applied. Depending on the parameter's position, you can use the Empty statement or omit it entirely. The rules are as follows:
You can use the Empty statement, or leave the argument empty between two commas. Never provide the value Nothing instead of Empty; this may appear to work, but produce inconsistent results.
'VALID
'Parameter #2 (inDateTimeValue) is skipped/ignored: the Empty statement is provided as value.
'- The default value applies (i.e. the current UTC time).
Response.Write o_LJWSS_TZ.ConvertUtcToTimeZone(vbDate, Empty, "W. Europe Standard Time", "ISO8601")
'VALID (BUT NOT RECOMMENDED)
'Parameter #2 (inDateTimeValue) is skipped/ignored: it is left empty.
'- The default value is applied (i.e. the current UTC time).
'- The code becomes less readable and more fragile: it's easy to forget a comma.
' Therefore, prefer the explicit use of the Empty statement for readability.
Response.Write o_LJWSS_TZ.ConvertUtcToTimeZone(vbDate, , "W. Europe Standard Time", "ISO8601")You can use the Empty statement, or omit the parameter at the end of the method. Never provide the value Nothing instead of Empty; this may appear to work, but produce inconsistent results.
'VALID
'Parameter #4 (in DateTimeFormat) is skipped/ignored: the Empty statement is provided as value.
'- The default value applies (i.e. the vbDate constant)
Response.Write o_LJWSS_TZ.ConvertUtcToTimeZone(vbDate, Now(), "W. Europe Standard Time", Empty)
'VALID
'Parameter #4 (outDateTimeFormat) is skipped/ignored: it is not provided.
'- The default value applies (i.e. the vbDate constant).
Response.Write o_LJWSS_TZ.ConvertUtcToTimeZone(vbDate, Now(), "W. Europe Standard Time")An empty string is not synonymous with absence: an empty string remains a String variable with a value (albeit an empty one). The parameter is therefore considered a value, albeit an empty content, but a value nonetheless.
Some parameters may occasionally accept an empty string and apply the default value, but do not rely on this behavior, as it is neither reliable nor predictable.
'INVALID
'Parameter #2 (inDateTimeValue) is not skipped/ignored: an empty string is provided.
'- The default value does not apply.
'- Error 80131537 (-2146233033) is raised.
Response.Write o_LJWSS_TZ.ConvertUtcToTimeZone(vbDate, "", "W. Europe Standard Time", "ISO8601")In every method, inDateTimeFormat and outDateTimeFormat parameters specify in what format the date is supplied or returned.
The inDateTimeFormat parameter specifies the format in which the date is supplied. This parameter accepts the following values:
| Value | Description | Examples of inDateTimeValue |
|---|---|---|
| vbDate | vbDate constant. inDateTimeValue must be a native VBScript date. | #2026/01/03 12:34:56# CDate("2026-01-03 12:34:56") DateSerial(2026,1,3) + TimeSerial(12,34,56) |
| "yyyy/MM/dd" | English date format. inDateTimeValue must be a string containing a date in English format. | 2026/01/03 |
| "yyyy/MM/dd HH:mm:ss" | English date+time format. inDateTimeValue must be a string containing a date+time in English format. | 2026/01/03 12:34:56 |
| "ISO8601" | Format ISO8601 (yyyy-MM-ddTHH:mm:ss).inDateTimeValue must be a string containing a date in ISO format, with or without Z, with or without an offset ±hh:mm. | 2026-01-02T14:30:00 2026-01-02T13:30:00Z 2026-01-02T14:30:00-05:00 |
NOTE : The component does not handle fractions of a second in the dates supplied in ISO8601 format (e.g. 2026-01-02T14:30:00.123+01:00)
The outDateTimeFormat parameter specifies the format in which the date is returned by the method. This parameter accepts the following values:
| Value | Description | Output examples |
|---|---|---|
| vbDate | vbDate constant. The method returns a variable of type Date. vbDate is the default value for outDateTimeFormat | #2026/01/03 12:34:56# |
| "yyyy/MM/dd" | English date format. The method returns a variable of type String containing a date in English format. | 2026/01/03 |
| "yyyy/MM/dd HH:mm:ss" | English date+time format. The method returns a variable of type String containing a date+time in English format. | 2026/01/03 12:34:56 |
| "ISO8601" | Format ISO8601 (yyyy-MM-ddTHH:mm:ss).The method returns a variable of type String containing a date in ISO format, with or without Z, with or without an offset ±hh:mm. | 2026-01-02T14:30:00 2026-01-02T13:30:00Z 2026-01-02T14:30:00-05:00 |
NOTE : Fractions of a second are not included in the dates returned in ISO8601 format (e.g. 2026-01-02T14:30:00.123+01:00)
In every method, the inDateTimeValue parameter contains the supplied date. This parameter accepts the following values:
| Value description | Values examples |
|---|---|
| Variable of type Date containing a date/time. The default value is the current UTC time. inDateTimeFormat must be the vbDate constant. | #2026/01/03 12:34:56# CDate("2026-01-03 12:34:56") DateSerial(2026,1,3) + TimeSerial(12,34,56) |
| Variable of type String containing a date in English format. inDateTimeFormat must be the string "yyyy/MM/dd". | 2026/01/03 |
| Variable of type String containing a date+time in English format. inDateTimeFormat must be the string "yyyy/MM/dd HH:mm:ss". | 2026/01/03 12:34:56 |
Variable of type String containing a moment in ISO format (yyyy-MM-ddTHH:mm:ss), with or without Z, with or without an offset ±hh:mm.inDateTimeFormat must be the string "ISO8601". | 2026-01-02T14:30:00 2026-01-02T13:30:00Z 2026-01-02T14:30:00-05:00 |
Notes regarding the ISO8601 format:
The component does not handle fractions of a second in dates supplied in ISO8601 format (e.g. 2026-01-02T14:30:00.123+01:00)
A time value supplied in ISO 8601 format can be considered absolute or local depending on how it is specified. The fundamental rule of the ISO 8601 standard is that an ISO date with the letter Z or an offset + or - is considered absolute and represents a precise moment in time, regardless of any time zone. The time zone is therefore ignored in this case.
A common mistake is to provide an ISO date value with the letter Z or an offset + or - while specifying a different time zone. This results in a logical contradiction. In such cases, the component always prioritizes the ISO offset indicated at the end of the supplied value.
The table below details the behavior of the LJW ServerSuite component depending of the ISO8601 date type that you provide in the inDateTimeValue parameter:
| Format | Meaning | Behavior |
|---|---|---|
| yyyy-MM-ddTHH:mm:ssZ | ISO UTC | inTimeZone is ignored. The supplied date/time is considered absolute and expressed in UTC. The component internally interprets the supplied time as UTC before any calculation, conversion, or comparison. |
| yyyy-MM-ddTHH:mm:ss±hh:mm | ISO | inTimeZone is ignored. The supplied date/time is considered absolute. The component internally converts the supplied time to UTC using the specified offset, before any calculation, conversion, or comparison. |
| yyyy-MM-ddTHH:mm:ss | Localized ISO | inTimeZone is taken into account. The supplied date/time is not considered absolute. The supplied date/time is interpreted as "local time in the provided time zone". |
In every method, the inTimeZone and outTimeZone parameters specify the time zone in which the date is supplied or returned. These parameters accept as a value a Windows Time Zone Identifier (Windows ID, not IANA), whose name is always defined in English.
The available and allowed time zones for these parameters are listed in the table below.
The default value for these parameters is "UTC". This default value is used when the parameter is Empty, Nothing, an empty string, or omitted. If an incorrect value is specified (a non-existent time zone), the component returns the 80131500 (-2146233088) error.
| Windows Identifier | UTC Offset | Timezone | Description | Country/Region | ISO 3166 |
|---|---|---|---|---|---|
| UTC | (UTC) | UTC | Coordinated Universal Time | Bouvet Island | BV |
| Greenwich Standard Time | (UTC) | Greenwich Standard Time | Monrovia, Reykjavik | Burkina Faso | BF |
| Greenwich Standard Time | (UTC) | Greenwich Standard Time | Monrovia, Reykjavik | Côte d'Ivoire | CI |
| GMT Standard Time | (UTC) | GMT Standard Time | Dublin, Edinburgh, Lisbon, London | Faroe Islands | FO |
| Greenwich Standard Time | (UTC) | Greenwich Standard Time | Monrovia, Reykjavik | Gambia, The | GM |
| Greenwich Standard Time | (UTC) | Greenwich Standard Time | Monrovia, Reykjavik | Ghana | GH |
| GMT Standard Time | (UTC) | GMT Standard Time | Dublin, Edinburgh, Lisbon, London | Guernsey | GG |
| Greenwich Standard Time | (UTC) | Greenwich Standard Time | Monrovia, Reykjavik | Guinea | GN |
| Greenwich Standard Time | (UTC) | Greenwich Standard Time | Monrovia, Reykjavik | Guinea-Bissau | GW |
| Greenwich Standard Time | (UTC) | Greenwich Standard Time | Monrovia, Reykjavik | Iceland | IS |
| GMT Standard Time | (UTC) | GMT Standard Time | Dublin, Edinburgh, Lisbon, London | Ireland | IE |
| GMT Standard Time | (UTC) | GMT Standard Time | Dublin, Edinburgh, Lisbon, London | Jersey | JE |
| Greenwich Standard Time | (UTC) | Greenwich Standard Time | Monrovia, Reykjavik | Liberia | LR |
| Greenwich Standard Time | (UTC) | Greenwich Standard Time | Monrovia, Reykjavik | Mali | ML |
| GMT Standard Time | (UTC) | GMT Standard Time | Dublin, Edinburgh, Lisbon, London | Man, Isle of | IM |
| Greenwich Standard Time | (UTC) | Greenwich Standard Time | Monrovia, Reykjavik | Mauritania | MR |
| Morocco Standard Time | (UTC) | Morocco Standard Time | Casablanca | Morocco | MA |
| GMT Standard Time | (UTC) | GMT Standard Time | Dublin, Edinburgh, Lisbon, London | Portugal | PT |
| Greenwich Standard Time | (UTC) | Greenwich Standard Time | Monrovia, Reykjavik | Saint Helena, Ascension and Tristan da Cunha | SH |
| Greenwich Standard Time | (UTC) | Greenwich Standard Time | Monrovia, Reykjavik | São Tomé and Príncipe | ST |
| Greenwich Standard Time | (UTC) | Greenwich Standard Time | Monrovia, Reykjavik | Senegal | SN |
| Greenwich Standard Time | (UTC) | Greenwich Standard Time | Monrovia, Reykjavik | Sierra Leone | SL |
| Greenwich Standard Time | (UTC) | Greenwich Standard Time | Monrovia, Reykjavik | Togo | TG |
| GMT Standard Time | (UTC) | GMT Standard Time | Dublin, Edinburgh, Lisbon, London | United Kingdom | GB |
| Central Europe Standard Time | (UTC+01:00) | Central Europe Standard Time | Belgrade, Bratislava, Budapest, Ljubljana, Prague | Albania | AL |
| W. Central Africa Standard Time | (UTC+01:00) | W. Central Africa Standard Time | West Central Africa | Algeria | DZ |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Andorra | AD |
| W. Central Africa Standard Time | (UTC+01:00) | W. Central Africa Standard Time | West Central Africa | Angola | AO |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Austria | AT |
| Romance Standard Time | (UTC+01:00) | Romance Standard Time | Brussels, Copenhagen, Madrid, Paris | Belgium | BE |
| W. Central Africa Standard Time | (UTC+01:00) | W. Central Africa Standard Time | West Central Africa | Benin | BJ |
| Central European Standard Time | (UTC+01:00) | Central European Standard Time | Sarajevo, Skopje, Warsaw, Zagreb | Bosnia and Herzegovina | BA |
| W. Central Africa Standard Time | (UTC+01:00) | W. Central Africa Standard Time | West Central Africa | Cameroon | CM |
| W. Central Africa Standard Time | (UTC+01:00) | W. Central Africa Standard Time | West Central Africa | Central African Republic | CF |
| W. Central Africa Standard Time | (UTC+01:00) | W. Central Africa Standard Time | West Central Africa | Chad | TD |
| W. Central Africa Standard Time | (UTC+01:00) | W. Central Africa Standard Time | West Central Africa | Congo | CG |
| W. Central Africa Standard Time | (UTC+01:00) | W. Central Africa Standard Time | West Central Africa | Congo (DRC) | CD |
| Central European Standard Time | (UTC+01:00) | Central European Standard Time | Sarajevo, Skopje, Warsaw, Zagreb | Croatia | HR |
| Central Europe Standard Time | (UTC+01:00) | Central Europe Standard Time | Belgrade, Bratislava, Budapest, Ljubljana, Prague | Czech Republic | CZ |
| Romance Standard Time | (UTC+01:00) | Romance Standard Time | Brussels, Copenhagen, Madrid, Paris | Denmark | DK |
| W. Central Africa Standard Time | (UTC+01:00) | W. Central Africa Standard Time | West Central Africa | Equatorial Guinea | GQ |
| Romance Standard Time | (UTC+01:00) | Romance Standard Time | Brussels, Copenhagen, Madrid, Paris | France | FR |
| W. Central Africa Standard Time | (UTC+01:00) | W. Central Africa Standard Time | West Central Africa | Gabon | GA |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Germany | DE |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Gibraltar | GI |
| Central Europe Standard Time | (UTC+01:00) | Central Europe Standard Time | Belgrade, Bratislava, Budapest, Ljubljana, Prague | Hungary | HU |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Italy | IT |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Jan Mayen | SJ |
| Central European Standard Time | (UTC+01:00) | Central European Standard Time | Sarajevo, Skopje, Warsaw, Zagreb | Kosovo | XK |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Liechtenstein | LI |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Luxembourg | LU |
| Central European Standard Time | (UTC+01:00) | Central European Standard Time | Sarajevo, Skopje, Warsaw, Zagreb | Republic of North Macedonia | MK |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Malta | MT |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Monaco | MC |
| Central European Standard Time | (UTC+01:00) | Central European Standard Time | Sarajevo, Skopje, Warsaw, Zagreb | Montenegro | ME |
| Namibia Standard Time | (UTC+01:00) | Namibia Standard Time | Windhoek | Namibia | NA |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Netherlands | NL |
| W. Central Africa Standard Time | (UTC+01:00) | W. Central Africa Standard Time | West Central Africa | Niger | NE |
| W. Central Africa Standard Time | (UTC+01:00) | W. Central Africa Standard Time | West Central Africa | Nigeria | NG |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Norway | NO |
| Central European Standard Time | (UTC+01:00) | Central European Standard Time | Sarajevo, Skopje, Warsaw, Zagreb | Poland | PL |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | San Marino | SM |
| Central Europe Standard Time | (UTC+01:00) | Central Europe Standard Time | Belgrade, Bratislava, Budapest, Ljubljana, Prague | Serbia | RS |
| Central Europe Standard Time | (UTC+01:00) | Central Europe Standard Time | Belgrade, Bratislava, Budapest, Ljubljana, Prague | Slovakia | SK |
| Central Europe Standard Time | (UTC+01:00) | Central Europe Standard Time | Belgrade, Bratislava, Budapest, Ljubljana, Prague | Slovenia | SI |
| Romance Standard Time | (UTC+01:00) | Romance Standard Time | Brussels, Copenhagen, Madrid, Paris | Spain | ES |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Svalbard | SJ |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Sweden | SE |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Switzerland | CH |
| W. Central Africa Standard Time | (UTC+01:00) | W. Central Africa Standard Time | West Central Africa | Tunisia | TN |
| W. Europe Standard Time | (UTC+01:00) | W. Europe Standard Time | Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | Vatican City | VA |
| FLE Standard Time | (UTC+02:00) | FLE Standard Time | Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius | Åland Islands | AX |
| South Africa Standard Time | (UTC+02:00) | South Africa Standard Time | Harare, Pretoria | Botswana | BW |
| FLE Standard Time | (UTC+02:00) | FLE Standard Time | Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius | Bulgaria | BG |
| South Africa Standard Time | (UTC+02:00) | South Africa Standard Time | Harare, Pretoria | Burundi | BI |
| E. Europe Standard Time | (UTC+02:00) | E. Europe Standard Time | E. Europe | Cyprus | CY |
| Egypt Standard Time | (UTC+02:00) | Egypt Standard Time | Cairo | Egypt | EG |
| FLE Standard Time | (UTC+02:00) | FLE Standard Time | Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius | Estonia | EE |
| FLE Standard Time | (UTC+02:00) | FLE Standard Time | Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius | Finland | FI |
| GTB Standard Time | (UTC+02:00) | GTB Standard Time | Athens, Bucharest | Greece | GR |
| Israel Standard Time | (UTC+02:00) | Israel Standard Time | Middle East | Israel | IL |
| Jordan Standard Time | (UTC+02:00) | Jordan Standard Time | Amman | Jordan | JO |
| FLE Standard Time | (UTC+02:00) | FLE Standard Time | Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius | Latvia | LV |
| Middle East Standard Time | (UTC+02:00) | Middle East Standard Time | Beirut | Lebanon | LB |
| South Africa Standard Time | (UTC+02:00) | South Africa Standard Time | Harare, Pretoria | Lesotho | LS |
| E. Europe Standard Time | (UTC+02:00) | E. Europe Standard Time | E. Europe | Libya | LY |
| FLE Standard Time | (UTC+02:00) | FLE Standard Time | Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius | Lithuania | LT |
| South Africa Standard Time | (UTC+02:00) | South Africa Standard Time | Harare, Pretoria | Malawi | MW |
| GTB Standard Time | (UTC+02:00) | GTB Standard Time | Athens, Bucharest | Moldova | MD |
| South Africa Standard Time | (UTC+02:00) | South Africa Standard Time | Harare, Pretoria | Mozambique | MZ |
| Egypt Standard Time | (UTC+02:00) | Egypt Standard Time | Cairo | Palestinian Authority | PS |
| GTB Standard Time | (UTC+02:00) | GTB Standard Time | Athens, Bucharest | Romania | RO |
| South Africa Standard Time | (UTC+02:00) | South Africa Standard Time | Harare, Pretoria | Rwanda | RW |
| South Africa Standard Time | (UTC+02:00) | South Africa Standard Time | Harare, Pretoria | South Africa | ZA |
| South Africa Standard Time | (UTC+02:00) | South Africa Standard Time | Harare, Pretoria | Swaziland | SZ |
| Syria Standard Time | (UTC+02:00) | Syria Standard Time | Damascus | Syria | SY |
| Türkiye Standard Time | (UTC+02:00) | Türkiye Standard Time | Istanbul | Türkiye | TR |
| FLE Standard Time | (UTC+02:00) | FLE Standard Time | Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius | Ukraine | UA |
| South Africa Standard Time | (UTC+02:00) | South Africa Standard Time | Harare, Pretoria | Zambia | ZM |
| South Africa Standard Time | (UTC+02:00) | South Africa Standard Time | Harare, Pretoria | Zimbabwe | ZW |
| Arab Standard Time | (UTC+03:00) | Arab Standard Time | Kuwait, Riyadh | Bahrain | BH |
| Belarus Standard Time | (UTC+03:00) | Belarus Standard Time | Minsk | Belarus | BY |
| E. Africa Standard Time | (UTC+03:00) | E. Africa Standard Time | Nairobi | Comoros | KM |
| E. Africa Standard Time | (UTC+03:00) | E. Africa Standard Time | Nairobi | Djibouti | DJ |
| E. Africa Standard Time | (UTC+03:00) | E. Africa Standard Time | Nairobi | Eritrea | ER |
| E. Africa Standard Time | (UTC+03:00) | E. Africa Standard Time | Nairobi | Ethiopia | ET |
| Arabic Standard Time | (UTC+03:00) | Arabic Standard Time | Baghdad | Iraq | IQ |
| E. Africa Standard Time | (UTC+03:00) | E. Africa Standard Time | Nairobi | Kenya | KE |
| Arab Standard Time | (UTC+03:00) | Arab Standard Time | Kuwait, Riyadh | Kuwait | KW |
| E. Africa Standard Time | (UTC+03:00) | E. Africa Standard Time | Nairobi | Madagascar | MG |
| E. Africa Standard Time | (UTC+03:00) | E. Africa Standard Time | Nairobi | Mayotte | YT |
| Arab Standard Time | (UTC+03:00) | Arab Standard Time | Kuwait, Riyadh | Qatar | QA |
| Russian Standard Time | (UTC+03:00) | Russian Standard Time | Moscow, St. Petersburg, Volgograd (RTZ 2) | Russia | RU |
| Arab Standard Time | (UTC+03:00) | Arab Standard Time | Kuwait, Riyadh | Saudi Arabia | SA |
| E. Africa Standard Time | (UTC+03:00) | E. Africa Standard Time | Nairobi | Somalia | SO |
| E. Africa Standard Time | (UTC+03:00) | E. Africa Standard Time | Nairobi | South Sudan | SS |
| E. Africa Standard Time | (UTC+03:00) | E. Africa Standard Time | Nairobi | Sudan | SD |
| E. Africa Standard Time | (UTC+03:00) | E. Africa Standard Time | Nairobi | Tanzania | TZ |
| E. Africa Standard Time | (UTC+03:00) | E. Africa Standard Time | Nairobi | Uganda | UG |
| Arab Standard Time | (UTC+03:00) | Arab Standard Time | Kuwait, Riyadh | Yemen | YE |
| Iran Standard Time | (UTC+03:30) | Iran Standard Time | Tehran | Iran | IR |
| Caucasus Standard Time | (UTC+04:00) | Caucasus Standard Time | Yerevan | Armenia | AM |
| Azerbaijan Standard Time | (UTC+04:00) | Azerbaijan Standard Time | Baku | Azerbaijan | AZ |
| Georgian Standard Time | (UTC+04:00) | Georgian Standard Time | Tbilisi | Georgia | GE |
| Mauritius Standard Time | (UTC+04:00) | Mauritius Standard Time | Port Louis | Heard Island and McDonald Islands | HM |
| Mauritius Standard Time | (UTC+04:00) | Mauritius Standard Time | Port Louis | Mauritius | MU |
| Arabian Standard Time | (UTC+04:00) | Arabian Standard Time | Abu Dhabi, Muscat | Oman | OM |
| Mauritius Standard Time | (UTC+04:00) | Mauritius Standard Time | Port Louis | Reunion | RE |
| Mauritius Standard Time | (UTC+04:00) | Mauritius Standard Time | Port Louis | Seychelles | SC |
| Arabian Standard Time | (UTC+04:00) | Arabian Standard Time | Abu Dhabi, Muscat | United Arab Emirates | AE |
| Afghanistan Standard Time | (UTC+04:30) | Afghanistan Standard Time | Kabul | Afghanistan | AF |
| West Asia Standard Time | (UTC+05:00) | West Asia Standard Time | Ashgabat, Tashkent | French Southern and Antarctic Lands | TF |
| West Asia Standard Time | (UTC+05:00) | West Asia Standard Time | Ashgabat, Tashkent | Maldives | MV |
| Pakistan Standard Time | (UTC+05:00) | Pakistan Standard Time | Islamabad, Karachi | Pakistan | PK |
| West Asia Standard Time | (UTC+05:00) | West Asia Standard Time | Ashgabat, Tashkent | Tajikistan | TJ |
| West Asia Standard Time | (UTC+05:00) | West Asia Standard Time | Ashgabat, Tashkent | Turkmenistan | TM |
| West Asia Standard Time | (UTC+05:00) | West Asia Standard Time | Ashgabat, Tashkent | Uzbekistan | UZ |
| India Standard Time | (UTC+05:30) | India Standard Time | Chennai, Kolkata, Mumbai, New Delhi | India | IN |
| Sri Lanka Standard Time | (UTC+05:30) | Sri Lanka Standard Time | Sri Jayawardenepura | Sri Lanka | LK |
| Nepal Standard Time | (UTC+05:45) | Nepal Standard Time | Kathmandu | Nepal | NP |
| Bangladesh Standard Time | (UTC+06:00) | Bangladesh Standard Time | Dhaka | Bangladesh | BD |
| Bangladesh Standard Time | (UTC+06:00) | Bangladesh Standard Time | Dhaka | Bhutan | BT |
| Central Asia Standard Time | (UTC+06:00) | Central Asia Standard Time | Astana | British Indian Ocean Territory | IO |
| Central Asia Standard Time | (UTC+06:00) | Central Asia Standard Time | Astana | Kazakhstan | KZ |
| Central Asia Standard Time | (UTC+06:00) | Central Asia Standard Time | Astana | Kyrgyzstan | KG |
| Myanmar Standard Time | (UTC+06:30) | Myanmar Standard Time | Yangon (Rangoon) | Cocos (Keeling) Islands | CC |
| Myanmar Standard Time | (UTC+06:30) | Myanmar Standard Time | Yangon (Rangoon) | Myanmar | MM |
| SE Asia Standard Time | (UTC+07:00) | SE Asia Standard Time | Bangkok, Hanoi, Jakarta | Cambodia | KH |
| SE Asia Standard Time | (UTC+07:00) | SE Asia Standard Time | Bangkok, Hanoi, Jakarta | Christmas Island | CX |
| SE Asia Standard Time | (UTC+07:00) | SE Asia Standard Time | Bangkok, Hanoi, Jakarta | Indonesia | ID |
| SE Asia Standard Time | (UTC+07:00) | SE Asia Standard Time | Bangkok, Hanoi, Jakarta | Laos | LA |
| SE Asia Standard Time | (UTC+07:00) | SE Asia Standard Time | Bangkok, Hanoi, Jakarta | Thailand | TH |
| SE Asia Standard Time | (UTC+07:00) | SE Asia Standard Time | Bangkok, Hanoi, Jakarta | Vietnam | VN |
| Singapore Standard Time | (UTC+08:00) | Singapore Standard Time | Kuala Lumpur, Singapore | Brunei | BN |
| China Standard Time | (UTC+08:00) | China Standard Time | Beijing, Chongqing, Hong Kong SAR, Urumqi | China | CN |
| China Standard Time | (UTC+08:00) | China Standard Time | Beijing, Chongqing, Hong Kong SAR, Urumqi | Hong Kong SAR | HK |
| China Standard Time | (UTC+08:00) | China Standard Time | Beijing, Chongqing, Hong Kong SAR, Urumqi | Macao SAR | MO |
| Singapore Standard Time | (UTC+08:00) | Singapore Standard Time | Kuala Lumpur, Singapore | Malaysia | MY |
| Ulaanbaatar Standard Time | (UTC+08:00) | Ulaanbaatar Standard Time | Ulaanbaatar | Mongolia | MN |
| Singapore Standard Time | (UTC+08:00) | Singapore Standard Time | Kuala Lumpur, Singapore | Philippines | PH |
| Singapore Standard Time | (UTC+08:00) | Singapore Standard Time | Kuala Lumpur, Singapore | Singapore | SG |
| Taipei Standard Time | (UTC+08:00) | Taipei Standard Time | Taipei | Taiwan | TW |
| Tokyo Standard Time | (UTC+09:00) | Tokyo Standard Time | Osaka, Sapporo, Tokyo | Democratic Republic of Timor-Leste | TL |
| Tokyo Standard Time | (UTC+09:00) | Tokyo Standard Time | Osaka, Sapporo, Tokyo | Japan | JP |
| Korea Standard Time | (UTC+09:00) | Korea Standard Time | Seoul | Korea | KR |
| Korea Standard Time | (UTC+09:00) | Korea Standard Time | Seoul | North Korea | KP |
| Tokyo Standard Time | (UTC+09:00) | Tokyo Standard Time | Osaka, Sapporo, Tokyo | Palau | PW |
| AUS Eastern Standard Time | (UTC+10:00) | AUS Eastern Standard Time | Canberra, Melbourne, Sydney | Australia | AU |
| West Pacific Standard Time | (UTC+10:00) | West Pacific Standard Time | Guam, Port Moresby | Guam | GU |
| West Pacific Standard Time | (UTC+10:00) | West Pacific Standard Time | Guam, Port Moresby | Micronesia | FM |
| West Pacific Standard Time | (UTC+10:00) | West Pacific Standard Time | Guam, Port Moresby | Northern Mariana Islands | MP |
| West Pacific Standard Time | (UTC+10:00) | West Pacific Standard Time | Guam, Port Moresby | Papua New Guinea | PG |
| Central Pacific Standard Time | (UTC+11:00) | Central Pacific Standard Time | Solomon Is., New Caledonia | New Caledonia | NC |
| Central Pacific Standard Time | (UTC+11:00) | Central Pacific Standard Time | Solomon Is., New Caledonia | Norfolk Island | NF |
| Central Pacific Standard Time | (UTC+11:00) | Central Pacific Standard Time | Solomon Is., New Caledonia | Solomon Islands | SB |
| Central Pacific Standard Time | (UTC+11:00) | Central Pacific Standard Time | Solomon Is., New Caledonia | Vanuatu | VU |
| Fiji Standard Time | (UTC+12:00) | Fiji Standard Time | Fiji | Fiji Islands | FJ |
| UTC+12 | (UTC+12:00) | UTC+12 | Coordinated Universal Time+12 | Kiribati | KI |
| UTC+12 | (UTC+12:00) | UTC+12 | Coordinated Universal Time+12 | Marshall Islands | MH |
| UTC+12 | (UTC+12:00) | UTC+12 | Coordinated Universal Time+12 | Nauru | NR |
| New Zealand Standard Time | (UTC+12:00) | New Zealand Standard Time | Auckland, Wellington | New Zealand | NZ |
| UTC+12 | (UTC+12:00) | UTC+12 | Coordinated Universal Time+12 | Tuvalu | TV |
| UTC+12 | (UTC+12:00) | UTC+12 | Coordinated Universal Time+12 | Wallis and Futuna | WF |
| Samoa Standard Time | (UTC+13:00) | Samoa Standard Time | Samoa | Samoa | WS |
| Tonga Standard Time | (UTC+13:00) | Tonga Standard Time | Nuku'alofa | Tokelau | TK |
| Tonga Standard Time | (UTC+13:00) | Tonga Standard Time | Nuku'alofa | Tonga | TO |
| Cape Verde Standard Time | (UTC-01:00) | Cape Verde Standard Time | Cabo Verde Is. | Cabo Verde | CV |
| UTC-02 | (UTC-02:00) | UTC-02 | Coordinated Universal Time-02 | South Georgia and the South Sandwich Islands | GS |
| Pacific SA Standard Time | (UTC-03:00) | Pacific SA Standard Time | Santiago | Antarctica | AQ |
| Argentina Standard Time | (UTC-03:00) | Argentina Standard Time | City of Buenos Aires | Argentina | AR |
| E. South America Standard Time | (UTC-03:00) | E. South America Standard Time | Brasilia | Brazil | BR |
| Pacific SA Standard Time | (UTC-03:00) | Pacific SA Standard Time | Santiago | Chile | CL |
| SA Eastern Standard Time | (UTC-03:00) | SA Eastern Standard Time | Cayenne, Fortaleza | Falkland Islands | FK |
| SA Eastern Standard Time | (UTC-03:00) | SA Eastern Standard Time | Cayenne, Fortaleza | French Guiana | GF |
| Greenland Standard Time | (UTC-03:00) | Greenland Standard Time | Greenland | Greenland | GL |
| Greenland Standard Time | (UTC-03:00) | Greenland Standard Time | Greenland | Saint Pierre and Miquelon | PM |
| SA Eastern Standard Time | (UTC-03:00) | SA Eastern Standard Time | Cayenne, Fortaleza | Suriname | SR |
| Montevideo Standard Time | (UTC-03:00) | Montevideo Standard Time | Montevideo | Uruguay | UY |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Anguilla | AI |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Antigua and Barbuda | AG |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Aruba | AW |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Barbados | BB |
| Atlantic Standard Time | (UTC-04:00) | Atlantic Standard Time | Atlantic Time (Canada) | Bermuda | BM |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Bolivia | BO |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Bonaire, Sint Eustatius and Saba | BQ |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Curaçao | CW |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Dominica | DM |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Dominican Republic | DO |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Grenada | GD |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Guadeloupe | GP |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Guyana | GY |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Martinique | MQ |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Montserrat | MS |
| Paraguay Standard Time | (UTC-04:00) | Paraguay Standard Time | Asuncion | Paraguay | PY |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Puerto Rico | PR |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Saint Barthélemy | BL |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Saint Kitts and Nevis | KN |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Saint Lucia | LC |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Saint Martin (French part) | MF |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Saint Vincent and the Grenadines | VC |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Sint Maarten (Dutch part) | SX |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Trinidad and Tobago | TT |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Virgin Islands, U.S. | VI |
| SA Western Standard Time | (UTC-04:00) | SA Western Standard Time | Georgetown, La Paz, Manaus, San Juan | Virgin Islands, British | VG |
| Venezuela Standard Time | (UTC-04:30) | Venezuela Standard Time | Caracas | Bolivarian Republic of Venezuela | VE |
| Eastern Standard Time | (UTC-05:00) | Eastern Standard Time | Eastern Time (US & Canada) | Bahamas, The | BS |
| Eastern Standard Time | (UTC-05:00) | Eastern Standard Time | Eastern Time (US & Canada) | Canada | CA |
| SA Pacific Standard Time | (UTC-05:00) | SA Pacific Standard Time | Bogota, Lima, Quito, Rio Branco | Cayman Islands | KY |
| SA Pacific Standard Time | (UTC-05:00) | SA Pacific Standard Time | Bogota, Lima, Quito, Rio Branco | Colombia | CO |
| Eastern Standard Time | (UTC-05:00) | Eastern Standard Time | Eastern Time (US & Canada) | Cuba | CU |
| SA Pacific Standard Time | (UTC-05:00) | SA Pacific Standard Time | Bogota, Lima, Quito, Rio Branco | Ecuador | EC |
| Eastern Standard Time | (UTC-05:00) | Eastern Standard Time | Eastern Time (US & Canada) | Haiti | HT |
| SA Pacific Standard Time | (UTC-05:00) | SA Pacific Standard Time | Bogota, Lima, Quito, Rio Branco | Jamaica | JM |
| SA Pacific Standard Time | (UTC-05:00) | SA Pacific Standard Time | Bogota, Lima, Quito, Rio Branco | Panama | PA |
| SA Pacific Standard Time | (UTC-05:00) | SA Pacific Standard Time | Bogota, Lima, Quito, Rio Branco | Peru | PE |
| Eastern Standard Time | (UTC-05:00) | Eastern Standard Time | Eastern Time (US & Canada) | Turks and Caicos Islands | TC |
| Central America Standard Time | (UTC-06:00) | Central America Standard Time | Central America | Belize | BZ |
| Central America Standard Time | (UTC-06:00) | Central America Standard Time | Central America | Costa Rica | CR |
| Central America Standard Time | (UTC-06:00) | Central America Standard Time | Central America | El Salvador | SV |
| Central America Standard Time | (UTC-06:00) | Central America Standard Time | Central America | Guatemala | GT |
| Central America Standard Time | (UTC-06:00) | Central America Standard Time | Central America | Honduras | HN |
| Central Standard Time (Mexico) | (UTC-06:00) | Central Standard Time (Mexico) | Guadalajara, Mexico City, Monterrey | Mexico | MX |
| Central America Standard Time | (UTC-06:00) | Central America Standard Time | Central America | Nicaragua | NI |
| Mountain Standard Time | (UTC-07:00) | Mountain Standard Time | Mountain Time (US & Canada) | United States | US |
| Pacific Standard Time | (UTC-08:00) | Pacific Standard Time | Pacific Time (US & Canada) | Pitcairn Islands | PN |
| Pacific Standard Time | (UTC-08:00) | Pacific Standard Time | Pacific Time (US & Canada) | United States | US |
| Hawaiian Standard Time | (UTC-10:00) | Hawaiian Standard Time | Hawaii | Cook Islands | CK |
| Hawaiian Standard Time | (UTC-10:00) | Hawaiian Standard Time | Hawaii | French Polynesia | PF |
| UTC-11 | (UTC-11:00) | UTC-11 | Coordinated Universal Time-11 | American Samoa | AS |
| UTC-11 | (UTC-11:00) | UTC-11 | Coordinated Universal Time-11 | Niue | NU |
| UTC-11 | (UTC-11:00) | UTC-11 | Coordinated Universal Time-11 | U.S. Minor Outlying Islands | UM |
DST rules are specific to each time zone and driven by Windows. The component does not perform any calculations itself and strictly relies on the information provided by Windows Server.
Due to the DST rules in effect in some time zones, a date may be invalid or represent an ambiguous time. This component handles these cases by following deterministic rules described in this section.
Some times may be non-existent, for example, in the typical case of the switch to daylight saving time (spring). For example, the date 2026-03-29T02:30:00 in France does not exist because on March 29, 2026, at 02:00, the clocks directly jump to 03:00. Therefore, any time between 02:00:00 and 02:59:59 does not exist. In this case, the component returns an error that can be intercepted with Err.Number and Err.Description.
To avoid this type of situation, never generate an arbitrary local time without validation. If you store local times, convert them to UTC immediately, or force a valid time (e.g. 03:00).
This phenomenon is known as "DST overlap", for example, in the typical case of switching back to winter (autumn) time. For example, the date 2026-10-25T02:30:00 in France exists twice, because on October 25, 2026, the time 02:30 exists twice: once in summer time (UTC+2), and a second time in winter time (UTC+1). On that day, two users entering 02:30 might not be referring to the same moment, and this ambiguity is unavoidable if you accept local times.
In these situations, the component explicitly chooses the standard time with the smallest offset. This deterministic choice allows you to develop predictably for such cases.
To avoid these situations, never generate an arbitrary local time without validation. If you store local times, immediately convert them to UTC and store the original time zone, or force a valid time (e.g. 03:00). You can also ask the user for explicit confirmation: "Before or after the time change?".
Yes. The LJW ServerSuite component relies on the DST rules provided by Windows, which are regularly updated (e.g. policy changes or international rules and standards).
The presence of the letter Z in an ISO 8601 date means "UTC". Such a date therefore expresses a precise moment, valid worldwide, for example, 2026-01-03T12:00:00Z.
The + and - signs in an ISO 8601 date indicate a time zone offset. For example, 2026-01-03T13:00:00+01:00 means "13:00 in a time zone one hour ahead of UTC".
You can, but in this case, the date is interpreted as the local time of the chosen country, which can cause problems during daylight saving time changes. To ensure the reliability of your code logic, prioritize a UTC date (with Z) or one that explicitly indicates the time zone offset with the +/- signs.
UTC is the global reference time. It never changes (no daylight saving time).
UTC is preferred for storage and calculation for the following reasons:
It is recommended to use local time only when displaying data. Use the ConvertUtcToTimeZone function designed for this purpose.
Local time (without storing its associated time zone) is not recommended for the following main reasons:
The displayed time varies because each country (or region) has its own time zone, and sometimes daylight saving time.
The displayed time is not always the same depending on the country because two visitors may be in different time zones. They still see the same real moment, but displayed in their local time.
The LJW ServerSuite component uses the official Windows rules to calculate the correct time.
When switching to daylight saving time, some times do not exist/no longer exist. For example, at 02:00, the clock jumps directly to 03:00. Therefore, 02:30 does not exist on that day. The component then returns an error.
Similarly, when switching back to winter time, some times exist twice. For example, 02:30 exists once before the change and once after. In this case, the component explicitly chooses standard time (the smaller offset) to avoid ambiguity.
Some times do not exist when switching to summer time. For example, between 02:00 and 03:00, some hours are skipped. The component prevents the use of an impossible time.
This behavior is due to the summer/winter time change. The component automatically applies the official time rule of the country in question.
The component recognizes all available time zone identifiers (technical names) on the Windows system. Names like "France" or "Europe/Paris" are not valid. See our list of time zones officially supported by the LJW ServerSuite component.
We help you efficiently with IIS and your Classic ASP code.
Just get in touch with our team
NOTE: Your changes will be applied from the next page you will visit/load.
By using this website, you consent that we use technologies such as anonymous statistics and cookies to improve your browsing experience on our site, customise content, and analyse our traffic. This anonymous information may be shared with our trusted social media and analytics partners.