Originally Posted by Occidentally
No, to be precise that's not exactly what you get. What you are getting is a java.util.Date object, and what you're posting above is the value returned by this object's toString() method. It uses its own default DateFormatter to return this String value.
I've tried using SimpleDateFormat but I can't figure out how to turn the above date into something like: "2012-11-02"
SimpleDateFormat is definitely
the way to go. I second all the recommendations above -- please show us what you've tried as you're probably just making a small mistake that is preventing you from achieving success. With a little nudge in the right direction, I'll bet that you'll solve this and gain a better understanding of how SimpleDateFormat works.