Sampath Kumar Sampath Kumar - 5 months ago 30
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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download