I'm trying to pass a Date-Object to a SOAP-API and need the output of the date-object itself to be yyyy-MM-dd
I'm already converting my string into a date-object like this:
// String __startDatum = "2013-02-05";
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
Date convertedDate = dateFormat.parse(__startDatum);
For now the output of convertedDate
will be Tue Feb 05 00:00:00 MEZ 2013
.
How could I change the output of convertedDate
to be 2013-02-05
?
Please keep in mind I still need it to be a date-object not a string!