SQlite3 Datumsfunktionen 22. Mai 2012

Beispiel Datum vergleichen im SQL-Statement:

select * from TABLENAME where strftime('%Y-%m-%d %H:%M:%S',datumfield)<=strftime('%Y-%m-%d %H:%M:%S','now')

Beispiel Datum in 7 Tagen:

select strftime('%Y-%m-%d %H:%M:%S','now','+7 day') as datum