string ConvertDateTime( string datetime, string format = FORMAT_DATETIME, mixed site_id = false )
The function ConvertDateTime takes the date and time specified in the format of the current site and converts it to an arbitrary format.
Parameter | Description |
---|---|
datetime | Date and time in the format of a site passed in site_id. |
format | Specifies the format to which the date and time are to be converted. The following specifies are possible:
|
site_id | The site ID in whose format the datetime is specified. Optional. The current site is used by default. |
<? echo ConvertDateTime("25.12.2003", "YYYY-MM-DD", "ru"); // 2003-12-25 ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |