开发者

Sort the date in database column of sqlite

开发者 https://www.devze.com 2023-03-30 10:55 出处:网络
I am making an iPhone app. In this app i am using sqlite database for storing the dates in the column.The date which I am storing in the database column is not in the sorting order as you can see in t

I am making an iPhone app. In this app i am using sqlite database for storing the dates in the column.

Sort the date in database column of sqlite

The date which I am storing in the database column is not in the sorting order as you can see in the image. Now I want to sort the date according to ascending order. How can I do this. Please provide me so开发者_JAVA技巧me solution.

Thanks in advance.


You need to store the datetime in timestamp format and then try to sort them.

0

精彩评论

暂无评论...
验证码 换一张
取 消