How to convert UNIX TIMESTAMP to format yyyy-mm-dd ?
In my sqllite databse my date is formated to unix timestamp but i would like to show in my view in this format : yyyy-mm-dd. Is there a solution ?
Thank.
2 Answers
-
Wow this question is old … and still without a proper answer. Well, for those of you who are wondering, here it is … Titanium supports the javascript Date object. Check here for more info: http://www.w3schools.com/jsref/jsref_obj_date.asp
-
I use this
http://phpjs.org/functions/date:380