0

How can I shorten the following date below to something like Thursday 19th September

java.util.Date t = MoonPhaseFinder.findFullMoonFollowing(Calendar.getInstance());

the above code prints as follow

Thu Sep 19 21:34:21 EST 2013
Ossama
  • 2,333
  • 5
  • 41
  • 75

1 Answers1

0

Have a try on this :

SimpleDateFormat sdf = new SimpleDateFormat("EEEE dd'th' MMMM");
System.out.println(sdf.format(t));
blackSmith
  • 2,934
  • 1
  • 18
  • 36