WPDKDateTime::mySQLDateTime PHP Method

mySQLDateTime() public static method

Return a date and time in MySQL format YYYY-MM-DD HH:MM:SS.
Since: 1.3.0
public static mySQLDateTime ( string | integer $datetime ) : string
$datetime string | integer A string date or timestamp.
return string
    public static function mySQLDateTime($datetime)
    {
        return self::format($datetime, self::MYSQL_DATE_TIME);
    }