JDate::toSql
Gets the date as an SQL datetime string.
Signature
public function toSql([boolean
$local = false,
[JDatabaseDriver
$db = null]] )
Parameters
-
$local
- True to return the date string in the local time zone, false to return it in GMT.
-
$db
- The database driver or null to use JFactory::getDbo()
Returns
- string
- The date string in SQL datetime format.