API16

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.


<! removed transcluded page call, red link never existed >

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);
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples