How to store date and time in an SQLite database with Phonegap? I tried to use Datatype as “NUMERIC” and insert query with DATETIME(‘now’). But I got an error: “DBConnect Error processing sql:undefined”.
What is the best way to store date and time in SQLite database using Phonegap? Also I need to sort by date and time in this table.
datetime-columns should be created as
varchar(40)(and not numeric like in e.g. Access)
internal representation is 2012-08-31 hh:mm:ss.
So
Select * from x ORDER BY dt DESCwould be newest first