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,836
  • 9
  • 42
  • 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,054
  • 5
  • 33
  • 55
Alexander Kulyakhtin
  • 47,110
  • 36
  • 104
  • 156