Results 1 to 2 of 2
  1. #1
    sridharnr is offline Member
    Join Date
    Mar 2009
    Posts
    1
    Rep Power
    0

    Default calendar with week numbers of a current month

    Hi

    I am struggling to bring the attached output using java:confused:.

    Please somebody can help me in this regard?

    Thanks,
    Sridhar
    Attached Files Attached Files

  2. #2
    Join Date
    Mar 2009
    Posts
    5
    Rep Power
    0

    Default

    Using the below hint you can add some logic to get the required output
    Calendar now = Calendar.getInstance();
    now.setFirstDayOfWeek(Calendar.SUNDAY);
    int weekOfMonth = now.get(Calendar.WEEK_OF_MONTH);
    int weekOfYear = now.get(Calendar.WEEK_OF_YEAR);

Similar Threads

  1. Current week number method
    By levent in forum New To Java
    Replies: 2
    Last Post: 02-01-2010, 05:33 AM
  2. Get dates of current week
    By Qlubbie in forum New To Java
    Replies: 2
    Last Post: 11-19-2008, 10:03 AM
  3. printing two smallest numbers from a series of numbers
    By trofyscarz in forum New To Java
    Replies: 2
    Last Post: 10-15-2008, 12:46 AM
  4. Current month
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-07-2008, 09:40 AM
  5. date one month back
    By senzacionale in forum New To Java
    Replies: 1
    Last Post: 12-24-2007, 10:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •