How do I convert a date in the format dd / mm / yyyy to the format supported by sqlite yyyy-MM-dd'T'HH: mm: ss
Example:
public static String converteStringEmData(String stringData) throws ParseException {
SimpleDateFormat sdf = new SimpleDateFormat("dd/mm/aaaa");//yyyy-MM-dd'T'HH:mm:ss
SimpleDateFormat output = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date data = sdf.parse(stringData);
String formattedTime = output.format(data);
return formattedTime;
}