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,401
  • 7
  • 46
  • 83

1 Answers1

0

Have a try on this :

SimpleDateFormat sdf = new SimpleDateFormat("EEEE dd'th' MMMM");
System.out.println(sdf.format(t));
blackSmith
  • 3,054
  • 1
  • 20
  • 37