Converts a date to the given locale;
this function only exists for compatiblity reasion and should no be used, the timezone is not part of the datetime object. the function simple add/subtract the time between the local time and the UTC from the date Object.
Lucee Function Reference
Function DATECONVERT
Example
dateconvert(string conversion_type,datetime date):datetime
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
conversion_type | string | Yes |
- local2Utc: Converts local time to UTC time. |
date | datetime | Yes | a datetime object |