Java Calendar Day calendarDayToOrdinalDay(int dow)

Here you can find the source of calendarDayToOrdinalDay(int dow)

Description

calendar Day To Ordinal Day

License

Open Source License

Declaration

public static int calendarDayToOrdinalDay(int dow) 

Method Source Code


//package com.java2s;
import java.util.Calendar;

public class Main {
    public static int calendarDayToOrdinalDay(int dow) {
        return dow == Calendar.MONDAY ? 1
                : dow == Calendar.TUESDAY ? 2
                        : dow == Calendar.WEDNESDAY ? 3
                                : dow == Calendar.THURSDAY ? 4
                                        : dow == Calendar.FRIDAY ? 5 : dow == Calendar.SATURDAY ? 6 : 7;
    }/*  w  w  w  .ja va2s .  co m*/
}

Related

  1. absoluteDay(Calendar cal)
  2. absoluteDay(Calendar cal, boolean use1904windowing)
  3. afterCurrentDay(Calendar time)
  4. calendarAtStartOfToday()
  5. calToBeginningOfDay(Calendar c)
  6. ceilAllLessThanDay(Calendar cal)
  7. convertEndOfDay(Calendar cal)
  8. copyCalendarDay(final Calendar src, final Calendar dest)