Question: how to change date format yyyy-mm-dd to dd-mm-yyyy in java?
Answer: Get the input date string.
Convert it into java. util. ... 
Instantiate the SimpleDateFormat class by passing the desired (new) format as string to its constructor.
Invoke the format() method by passing the above obtained Date object as parameter.