SyntaxFix
Write A Post
Hire A Developer
Questions
There is a getTime() method (unsure why it's not called getDate).
getTime()
Edit: Just realized you need a java.sql.Date. One of the answers which use cal.getTimeInMillis() is what you need.
cal.getTimeInMillis()