The deprecated java.sql.Date
constructor was far more intuitive - Date(int year, int month, int day)
. But now we are required to use new java.sql.Date(long date).
I can't find on the documentation on how to write an actual long date myself. Is there any other approach to constructing an sql date in java besides using java.util.Date().getTime()
?