Java tutorial
//package com.java2s; import java.sql.Timestamp; import java.text.SimpleDateFormat; import java.util.Locale; public class Main { public static String TimestampJavaToDateSQLlite(Timestamp date) { if (date != null) { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()); return dateFormat.format(date); } else return null; } }