eXtreme Development

Java - date para long

SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yyyy"); Date date = (Date)formatter.parse("12-December-2012"); long mills = date.getTime(); Date d = new Date(1220227200L * 1000);

Reference

http://stackoverflow.com/questions/12473550/how-to-convert-string-date-to-long-millseconds



SourceForge BootStrap