Question: how to convert date into yyyy-mm-dd format in android?
Answer: 5 Answers. Calendar c = Calendar. getInstance(); SimpleDateFormat tf = new SimpleDateFormat("yyyy-MM-dd"); String time=DB time; Date parseTime= tf. parse(time); Integer dayNow=c.