java - Formatting a string to dd/MM/yyyy -


this question has answer here:

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")); 

Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -