Java tutorial
//package com.java2s; import android.database.Cursor; import java.util.Date; public class Main { public static Date LoadDate(Cursor cursor, int index) { if (cursor.isNull(index)) { return null; } return new Date(cursor.getLong(index)); } }