Skip to content

What is Up With Java Dates?

I know Java handles dates with all the finesse of a brain-damaged…

Ok there must be a better way to do this:

//get the current time and put it in a sql.Date

java.util.Date dateTime = Calendar.getInstance().getTime();

pCode.setDtActive(new Date(dateTime.getTime()));
[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*