java - Formatting a string to dd/MM/yyyy -
this question has answer here: java.util.date format conversion yyyy-mm-dd mm-dd-yyyy 5 answers i have string thu nov 12 00:00:00 gmt 2015 eee mmm dd hh:mm:ss zzz yyyy . i want convert string string format of dd/mm/yyyy , or in case 12/11/2015 . simpledateformat sfrom = new simpledateformat("eee mmm dd hh:mm:ss zzz yyyy"); simpledateformat sto = new simpledateformat("dd/mm/yyyy"); string result = sto.format(sfrom.parse("thu nov 12 00:00:00 gmt 2015"));