API17

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.  
  
{{Description:JDate::__toString}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JDate::__toString|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JDate::__toString ()
+
public function __toString ()
 
</source>
 
</source>
===Returns===
+
* '''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
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/utilities/date.php (line 241)
 
* see source code in [[jplatform:utilities/date.php#cl-241|BitBucket]]
 
===Referenced by===
 
 
===See also===
 
===See also===
<span class="editsection" style="font-size:76%;">
+
* {{JVer|11.1}} '''JDate::__toString source code''' on [[jplatform:utilities/date.php#cl-233|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JDate::__toString|Edit See Also]]<nowiki>]</nowiki>
+
* {{JVer|11.1}} Class [[API17:JDate|JDate]]
</span>
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Utilities|Utilities]]
* [[JDate/11.1|JDate]]
+
* [[API17:JDate::__toString|Other versions of JDate::__toString]]
* [[JDate::__toString|Other versions of this method]]
+
 
{{SeeAlso:JDate::__toString}}
+
 
===Examples===
+
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JDate::__toString
 
category=JDate::__toString
category=CodeExample
+
namespace=CodeExample
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JDate]][[Category:JDate::__toString]]</noinclude>
+
<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.

Joomla 11.1 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 Joomla 11.1

See also[edit]


User contributed notes[edit]

Code Examples[edit]