{{theTime}}

Search This Blog

Total Pageviews

How to convert java.util.Date to java.sql.Date?

public static java.sql.Date convertJavaDateToSqlDate(java.util.Date javaUtilDate) {
        java.sql.Date sqlDate = new java.sql.Date(javaUtilDate.getTime());
return sqlDate;
}

No comments:

Generate Insert Sql from Select Statement

SELECT 'INSERT INTO ReferenceTable (ID, Name) VALUES (' +        CAST(ID AS NVARCHAR) + ', ''' + Name + ''...