Sampath Kumar Sampath Kumar - 22 days ago 11
Android Question

How to change date from (YYYY-MM-DD) to (MM-DD-YYYY) in android?

I get a date value from webservice and set a value in Textview like ("yyyy-MM-dd"), then I tried to change ("MM-DD-YYYY") but I cannot fix this.

Answer Source

If you want to change date format then use methods of java.text.SimpleDateFormat class.