Java Week Calculate getCurrWeek()

Here you can find the source of getCurrWeek()

Description

get Curr Week

License

Open Source License

Declaration

public static String getCurrWeek() 

Method Source Code

//package com.java2s;

import java.util.*;

public class Main {
    public static String getCurrWeek() {
        Calendar c = Calendar.getInstance();
        int w = c.get(Calendar.WEEK_OF_YEAR);
        if (w < 10) {
            return "0" + w;
        }/*  w  w w  . java  2s . c o  m*/
        return String.valueOf(w);
    }
}

Related

  1. alignWeek(Calendar timestamp)
  2. diffWeeks(Date start, Date end)
  3. getBounceDatesOfWeek(Date date)
  4. getCurrentWeekNum(Date startDate, Date endDate)
  5. getEndOfWeek(Calendar cal)
  6. getSeqWeek()
  7. getWeek(Date date)
  8. getWeekAbscissa(Class cls)