I have a string containing a date in the format YYYY-MM-DD.
YYYY-MM-DD
How would you suggest I go about converting it to the format DD-MM-YYYY in the
DD-MM-YYYY
Best to use a SimpleDateFormat (API) object to convert the String to a Date object. You can then convert via another SimpleDateFormat object to whatever String representation you wish giving you tremendous flexibility.