API16

JDate/toMySQL

From Joomla! Documentation

< API16:JDate

The "API16" 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.

Description[edit]

Gets the date as an MySQL datetime string.


<! removed transcluded page call, red link never existed >

Syntax[edit]

toMySQL($local=false)
Parameter Name Default Value Description
$local false

Defined in[edit]

libraries/joomla/utilities/date.php

Importing[edit]

jimport( 'joomla.utilities.date' );

Source Body[edit]

public function toMySQL($local = false)
{
        return $this->format('Y-m-d H:i:s', $local);
}


<! removed transcluded page call, red link never existed >

Examples[edit]

Code Examples[edit]