Difference between revisions of "JDate:: toString"
From Joomla! Documentation
(Layout updates) |
m (preparing for archive only) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
Magic method to render the date object in the format specified in the public static member JDate::$format. | Magic method to render the date object in the format specified in the public static member JDate::$format. | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public | + | public function __toString () |
</source> | </source> | ||
− | + | * '''Returns''' string The date as a formatted string. | |
− | string The date as a formatted string. | + | * '''Defined''' on line 241 of libraries/joomla/utilities/date.php |
− | + | * '''Since''' {{JVer|11.1 }} | |
− | libraries/joomla/utilities/date.php | ||
− | * | ||
− | |||
===See also=== | ===See also=== | ||
− | + | * {{JVer|11.1}} '''JDate::__toString source code''' on [[jplatform:utilities/date.php#cl-233|BitBucket]] | |
− | + | * {{JVer|11.1}} Class [[API17:JDate|JDate]] | |
− | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]] | |
− | * | + | * [[API17:JDate::__toString|Other versions of JDate::__toString]] |
− | * [[JDate::__toString|Other versions of | + | |
− | + | ||
− | ===Examples=== | + | ===User contributed notes=== |
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JDate::__toString | category=JDate::__toString | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 21:50, 24 March 2017
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JDate::__toString[edit]
Description[edit]
Magic method to render the date object in the format specified in the public static member JDate::$format.
public function __toString ()
- Returns string The date as a formatted string.
- Defined on line 241 of libraries/joomla/utilities/date.php
- Since
See also[edit]
- JDate::__toString source code on BitBucket
- Class JDate
- Subpackage Utilities
- Other versions of JDate::__toString
User contributed notes[edit]
Code Examples[edit]