Java Calendar Day date2day(Calendar cal)

Here you can find the source of date2day(Calendar cal)

Description

dateday

License

Apache License

Declaration

public static int date2day(Calendar cal) 

Method Source Code


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

import java.util.Calendar;

public class Main {

    public static int date2day(Calendar cal) {
        return cal.get(Calendar.YEAR) * 10000 + (cal.get(Calendar.MONTH) + 1) * 100
                + cal.get(Calendar.DAY_OF_MONTH);
    }//from  w  ww . jav a 2 s.  c  om
}

Related

  1. calToBeginningOfDay(Calendar c)
  2. ceilAllLessThanDay(Calendar cal)
  3. convertEndOfDay(Calendar cal)
  4. copyCalendarDay(final Calendar src, final Calendar dest)
  5. createBeginningOfDay(Calendar calendar)
  6. day(Calendar calendar)
  7. day(Calendar date)
  8. day2date(int day, Calendar cal)
  9. dayBegin(Calendar cal)