API16

API16:JDate/ toString

From Joomla! Documentation

Revision as of 01:30, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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