API17

JDatabaseMySQLi::dateToString: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 4: Line 4:
Method to get a  object represented as a datetime string in a format recognized by the database server.  
Method to get a  object represented as a datetime string in a format recognized by the database server.  


{{subst:Description:JDatabaseMySQLi::dateToString}}
 


<source lang="php">
<source lang="php">
Line 38: Line 38:
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
* [[API17:JDatabaseMySQLi::dateToString|Other versions of JDatabaseMySQLi::dateToString]]
* [[API17:JDatabaseMySQLi::dateToString|Other versions of JDatabaseMySQLi::dateToString]]
{{subst:SeeAlso:JDatabaseMySQLi::dateToString}}
 


===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JDatabaseMySQLi::dateToString
category=JDatabaseMySQLi::dateToString
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*

Latest revision as of 02:40, 25 March 2017

Joomla 11.1 JDatabaseMySQLi::dateToString

Description

Method to get a object represented as a datetime string in a format recognized by the database server.


public function dateToString (
        $date
        $local=false
)
Parameter Type Default Description
$date The object with which to return the datetime string.
$local bool false True to return the date string in the local time zone, false to return it in GMT.
  • Returns string The datetime string in the format recognized for the database system.
  • Defined on line 181 of libraries/joomla/database/database/mysqli.php
  • Since Joomla 11.1

See also


User contributed notes

Code Examples