Trying to convert the date format “2011-03-25 15:00:00.0” to “2011-03-25” in sqlite and getting deep troubles.
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 out :
sqlite> select strftime(“%Y-%m-%d”,’date_start’) from test;
What am I doing wrong in this?
Sagos
Remove the quotes from
date_start