Railo 4.2 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.

Beispiel

dateconvert(string conversion_type,datetime date):datetime

Argumente

Die Argumente für diese Funktion sind fest vorgegeben. Ausser den nachfolgenden Argumenten dürfen keine weiteren verwendet werden.
Name Typ Required Beschreibung
conversion_type string  Yes - local2Utc: Converts local time to UTC time.
  • utc2Local: Converts UTC time to local time.  
  • date datetime  Yes a datetime object