Posts Tagged: date format

SimpleDateFormat and Multiple Threads

Posted by & filed under , , .

I felt like I had to write this to spread the word a bit more about this little-known danger of one of the JDK classes: SimpleDateFormat. Used quite widely from what I can tell — who hasn’t written something like this: SimpleDateFormat df = new SimpleDateFormat(); df.format( new Date() );SimpleDateFormat df = new SimpleDateFormat(); df.format( […]