Convert util.Date to sql.Date - Java

Date Conversion

Snippet Code


  
Rate this page :
  [ 0 votes]

This snippet converts util.Date to sql.Date in java.

java.util.Date utilDate = new java.util.Date(); java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());

Tags


Ask Questions

Ask Question