Here you can find the source of getDate(ResultSet rs, int index)
public static Date getDate(ResultSet rs, int index) throws java.sql.SQLException
//package com.java2s; // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt import java.sql.ResultSet; import java.util.Date; public class Main { public static Date getDate(ResultSet rs, int index) throws java.sql.SQLException { if (rs.getTimestamp(index) != null) { return new Date(rs.getTimestamp(index).getTime()); }/* w w w .j av a 2s. c om*/ return null; } }