Here you can find the source of getCalendarFromSqlite(String dateString)
public static Date getCalendarFromSqlite(String dateString)
//package com.java2s; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static Date getCalendarFromSqlite(String dateString) { SimpleDateFormat dateFormatter = new SimpleDateFormat( "yyyy-MM-dd hh:mm:ss.SSS"); try {/* w w w . j a va 2 s .c om*/ return dateFormatter.parse(dateString); } catch (ParseException e) { e.printStackTrace(); } return null; } }