JHtml::date
Returns formated date according to a given format and time zone.
Signature
public function date([string
$input = 'now',
[string
$format = null,
[mixed
$tz = true,
[boolean
$gregorian = false]]]] )
Parameters
-
$input
- String in a format accepted by date(), defaults to "now".
-
$format
- The date format specification string (see {@link PHP_MANUAL#date}).
-
$tz
- Time zone to be used for the date. Special cases: boolean true for user
-
$gregorian
- True to use Gregorian calendar.
Returns
- string
- A date translated by the given format and time zone.