API17:JDate::toFormat
From Joomla! Documentation
JDate::toFormat
Description
Gets the date in a specific format.
public function toFormat (
$format= '%Y-%m-%d%H:%M:%S'
$local=false
)
Parameter | Type | Default | Description |
---|---|---|---|
$format | '%Y-%m-%d%H:%M:%S' | ||
$local | false |
- Returns
- Defined on line 417 of libraries/joomla/utilities/date.php
See also
JDate::toFormat source code on BitBucket
Class JDate
Subpackage Utilities
- Other versions of JDate::toFormat
User contributed notes
Code Examples