API16:JDate/ toString
From Joomla! Documentation
Description
Magic method to render the date object in the format specified in the public static member JDate::$format.
Template:Description:JDate/ toString
Syntax
__toString()
Returns
string The date as a formatted string.
Defined in
libraries/joomla/utilities/date.php
Importing
jimport( 'joomla.utilities.date' );
Source Body
public function __toString()
{
return (string) parent::format(self::$format);
}
[Edit See Also] Template:SeeAlso:JDate/ toString
Examples
<CodeExamplesForm />