Actions

API17

Difference between revisions of "JDate::toFormat"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by one user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JDate::toFormat|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JDate::toFormat|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JDate->toFormat ($format= '%Y-%m-%d%H:%M:%S', $local=false)
+
public function toFormat (
 +
        $format= '%Y-%m-%d%H:%M:%S'
 +
        $local=false
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 30: Line 32:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns'''
 
+
* '''Defined''' on line 417 of libraries/joomla/utilities/date.php
===Defined in===
+
libraries/joomla/utilities/date.php
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JDate::toFormat source code''' on [[jplatform:utilities/date.php#cl-409|BitBucket]]
 +
* {{JVer|11.1}} Class [[JDate/11.1|JDate]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]]
 +
* [[JDate::toFormat|Other versions of JDate::toFormat]]
 +
{{SeeAlso:JDate::toFormat}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDate::toFormat|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JDate::toFormat|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JDate/11.1|JDate]]
+
===User contributed notes===
* [[JDate::toFormat|Other versions of this method]]
+
{{SeeAlso:JDate::toFormat}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 50: Line 51:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JDate]][[Category:JDate::toFormat]]</noinclude>
 
<noinclude>[[Category:JDate]][[Category:JDate::toFormat]]</noinclude>

Revision as of 20:45, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JDate::toFormat

Description

Gets the date in a specific format.

Description:JDate::toFormat [Edit Descripton]

public function toFormat (
        $format= '%Y-%m-%d%H:%M:%S'
        $local=false
)
Parameter Type Default Description
$format '%Y-%m-%d%H:%M:%S'
$local false
  • Returns
  • Defined on line 417 of libraries/joomla/utilities/date.php

See also

SeeAlso:JDate::toFormat [Edit See Also]

User contributed notes

<CodeExamplesForm />