Java Week getWeek()

Here you can find the source of getWeek()

Description

get Week

License

Apache License

Declaration

public static String getWeek() 

Method Source Code

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

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Main {
    public static String getWeek() {
        Calendar cal = Calendar.getInstance();
        String week = new SimpleDateFormat("yyyy-MM-dd").format(cal.getTime());
        return week;
    }/*from w  w  w. j  ava 2 s .com*/
}

Related

  1. getPreWeeks(int weekNum)
  2. getStartDate(Date date, int weeks, Locale locale)
  3. getStartDateOfWeek(Date selectedDate, Locale locale)
  4. getThisWeek()
  5. getThisWeek()
  6. getWeek()
  7. getWeek(Date date)
  8. getWeek(int duration)
  9. getWeek(SimpleDateFormat df, String dateStr)