I have a date inside a string, something like \"12-December-2012\". How can I convert this into milliseconds (long)?
Easiest way is used the Date Using Date() and getTime()
Date dte=new Date(); long milliSeconds = dte.getTime(); String strLong = Long.toString(milliSeconds); System.out.println(milliSeconds)