Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how can i get the current week? for example: March 26 to April 1?  RSS feed

 
mike coles
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,


please help me..
how can i get the current week? for example: March 26 to April 1?
i will display it in my jsp..
please reply

Thank you very much to all of you..
 
Srikanth Ramu
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check if GregorianCalendar class suits your requirement:

http://java.sun.com/j2se/1.5.0/docs/api/java/util/GregorianCalendar.html

Refer the description and get(GregorianCalendar.WEEK_OF_MONTH), getFirstDayOfWeek(), getMinimalDaysInFirstWeek() method
s.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!