Trying to select a date (x) days from today’s date, where the date would be start of day (e.g. 12:00am that day).
For example, a query with date 5 days earlier..
@"select pkey, dateofmod from data WHERE dateofmod >= date('now', '? days')" , [NSNumber numberWithInt:-5];
doesn’t seem to work. (using FMDB).
Is this what you need?
juliandaydoes “round” to midnight:Usually with SQLite you want to use
juliandayif you are adding a number of days to a date.SQLite Date and Time Functions