I want to generate a timestamp in PHP and then store that value in SQLite.
Here is the code:
$created_date = date(“YYYY-MM-DD
HH:MM:SS”,time());
Here is what gets stored in the DB (which looks wrong):
11/21/0020 12:39:49 PM
How should I change my code to store the current date/time properly in SQLite
Why not just update your SQLite query to use
date('now')? referenceBut, within PHP you should be able to use