What is an alternative in SQLite as STR_TO_DATE()
funciton in MySQL?
views:
38answers:
2
A:
Use strftime
. Example:
strftime('%Y-%m-%d', 'now')
You could just use date
if the date you are providing fits any of the following:
- YYYY-MM-DD
- YYYY-MM-DD HH:MM
- YYYY-MM-DD HH:MM:SS
- YYYY-MM-DD HH:MM:SS.SSS
- YYYY-MM-DDTHH:MM
- YYYY-MM-DDTHH:MM:SS
- YYYY-MM-DDTHH:MM:SS.SSS
- HH:MM
- HH:MM:SS
- HH:MM:SS.SSS
- now
- DDDDDDDDDD
OMG Ponies
2009-12-07 06:58:59
A:
Pick up from here ..
Thillakan
2009-12-07 07:02:02