Java Calendar Day day2date(int day, Calendar cal)

Here you can find the source of day2date(int day, Calendar cal)

Description

daydate

License

Apache License

Declaration

public static Calendar day2date(int day, Calendar cal) 

Method Source Code


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

import java.util.Calendar;

public class Main {

    public static Calendar day2date(int day, Calendar cal) {
        cal.clear();//from   w  ww .j a  v  a2 s  .  co m
        cal.set(Calendar.YEAR, day / 10000);
        cal.set(Calendar.MONTH, (day % 10000) / 100 - 1);
        cal.set(Calendar.DAY_OF_MONTH, day % 100);
        return cal;
    }
}

Related

  1. copyCalendarDay(final Calendar src, final Calendar dest)
  2. createBeginningOfDay(Calendar calendar)
  3. date2day(Calendar cal)
  4. day(Calendar calendar)
  5. day(Calendar date)
  6. dayBegin(Calendar cal)
  7. dayBegin(Calendar calendar)
  8. dayDistance(Calendar date1, Calendar date2)
  9. dayEndTime(Calendar calendar)