android - Sort Date column which is in MM/dd/yyyy format in sqlite -


this question has answer here:

i want max date first following query not return correct data

cursor mcursor = db.rawquery("select * "                 + eservice_ticket_sync_table + " " + eservice_send_status                 + " = ? , " + eservice_user_id + " = ? order date("                 + eservice_creation_date + ") desc ", new string[] {                 send_status, user_id }); 

i had stored eservice_creation_date in format mm/dd/yyyy text.

thanks in advance.

correct usage of "order is": order column_name desc


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -