string CSite::GetDateFormat( string format_type = "FULL", mixed site_id = false )
The method GetDateFormat returns the site date (time) format.
Parameter | Description |
---|---|
format_type | Format type. The following values are possible:
|
site_id | The site ID. Optional. The current site ID is used by default. |
<? // displays the current date in the format of the current site echo date($DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")), time()); ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |