Java Week Calculate getSeqWeek()

Here you can find the source of getSeqWeek()

Description

get Seq Week

License

Apache License

Declaration

public static String getSeqWeek() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {

    public static String getSeqWeek() {
        Calendar c = Calendar.getInstance(Locale.CHINA);
        String week = Integer.toString(c.get(Calendar.WEEK_OF_YEAR));
        if (week.length() == 1)
            week = "0" + week;
        String year = Integer.toString(c.get(Calendar.YEAR));
        return year + week;
    }//from  w w  w. jav a  2s .c  om
}

Related

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