Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function DATECONVERT

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.

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.
  • utc2Local: Converts UTC time to local time.  
  • date datetime  Yes a datetime object