Will the MySQL datetime format work with SQLite and PostgreSQL? -


in mysql enter dates (datetime field) in format 2009-10-16 21:30:45. makes simple insert times database.

$date = date('y-m-d h:i:s', $timestamp); 

will format work sqlite , postgresql? if not, format use?

sqlite uses several date formats; postgresql uses similar formats , more.

both understand yyyy-mm-dd hh:mm:ss.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -