I'm trying to pull and format timestamp from my SQLite db. In my reading, it seems that SQLite formatting is extremely limited compared to date formatting conversion available to PHP. I have this query coming from javascript:
SELECT strftime('%m %d, %Y', timestamp) AS saveddate
And it returns:
03 03, 2009
I'm trying to get it to return:
March 3, 2009
Any suggestions?
'-'
from that query: this worked for me:select rtrim (substr ('January--February-March----April----May------June-----July-----August---SeptemberOctober--November-December', strftime ('%m', 'now') * 9 - 8, 9), '-')
Actually... I just saw that you suggest using spaces instead in which case you don't need to tellrtrim
to remove-
. – Schermerhorn