0

How do you get the numeric day of the week? For instance, Sunday is day 1 in the Gregorian calendar. Using SimpleDateFormat, d gets the day in month. Any solution for the numeric day of week?

DevC
  • 6,982
  • 9
  • 45
  • 80

1 Answers1

0

It should be "F" : http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

new SimpleDateFormat("F").format(new Date());
Afshin Moazami
  • 2,092
  • 5
  • 33
  • 55
Alexander Kulyakhtin
  • 47,782
  • 38
  • 107
  • 158