API16

API16:JDate/ toString

From Joomla! Documentation

Revision as of 22:55, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Magic method to render the date object in the format specified in the public static member JDate::$format. <span class="editsection" style="font-size:76%;"> <nowiki>...)
(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.

[Edit Descripton]

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 />