Java Week Day getSundayOfWeek()

Here you can find the source of getSundayOfWeek()

Description

get Sunday Of Week

License

Open Source License

Declaration

public static String getSundayOfWeek() 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {
    public static String getSundayOfWeek() {
        Calendar c = Calendar.getInstance();
        java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("yyyy-MM-dd");
        c.setFirstDayOfWeek(Calendar.MONDAY);
        c.set(Calendar.DAY_OF_WEEK, 1);
        return df.format(c.getTime());
    }//from  w w w  .j  a  va 2s . c  o  m
}

Related

  1. getPreviousOrNextDay(String time, int dayNum)
  2. getPreWeekLastDay()
  3. getShortWeekday(int dayOfWeek)
  4. getShortWeekday(String day)
  5. getSQLForWeekSunday(String weekString)
  6. getThisWeekMonday()
  7. getTodayOfWeek()
  8. getWeek(Date today, int index, String format)
  9. getWeekBeginDay(String date)