Java tutorial
//package com.java2s; import java.util.Date; public class Main { /** * Generates a string SQL expression to convert java date to sqlite unix style */ public static String javaDate2sqlite(Date javaDate) { return "" + (javaDate.getTime() / 1000L); } }