Skip to content

Coding, photography, Rants & Boats

Just another WordPress site

PHP to MySQL date formats

Posted byAlec Matthews May 13, 2019December 2, 2021
Here's the PHP date format needed to create a date that is compatible with MySQL or MariaDB's DATETIME type.
$mysqldatetime = date( 'Y-m-d H:i:s', $phpdate );
Posted byAlec MatthewsMay 13, 2019December 2, 2021Posted inUncategorized

Post navigation

Previous Post Previous post:
SSH Key Login
Next Post Next post:
Convert TTF fonts to WOFF2 for the web

Recent Posts

  • Convert TTF fonts to WOFF2 for the web
  • PHP to MySQL date formats
  • SSH Key Login

Recent Comments

    Archives

    • December 2021
    • May 2019

    Categories

    • Linux
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Coding, photography, Rants & Boats, Proudly powered by WordPress.