I am converting the Calendar
instance result.submissionDate
to java.sql.Timestamp
as below, am wondering is there any alternative efficient way to do this by avoiding creating new Timestamp
object?
invoice.setSubmittedAt(new java.sql.Timestamp(result.submissionDate.getTimeInMillis()));