Trying to convert the date format "2011-03-25 15: 00: 00.0" to "2011-03-25" in sqlite and get deep problems.
When I run this line, it works fine: sqlite> select strftime ("% Y-% m-% d", 'now'); 2011-03-16
But when I run this line, it loses: sqlite> select strftime ("% Y-% m-% d", "date_start") from the test;
What am I doing wrong in this?
Sagos
sqlite objective-c iphone sqlite3
lifemoveson
source share