-4

I have to convert the date Sun Oct 25 18:41:35 IST 2015 into Oct 25 2015 in java. Any one can you please suggest?

BDL
  • 21,052
  • 22
  • 49
  • 55
SubSab
  • 43
  • 1
  • 6

1 Answers1

-1

Use this

java.util.Date date = new Date("Sun Oct 25 18:41:35 IST 2015");
SimpleDateFormat formatter = new SimpleDateFormat("MMM dd yyyy");
String format = formatter.format(date);
System.out.println(format);