Java Calendar Year copyYearMonthDay(Calendar destCal, Calendar sourceCal)

Here you can find the source of copyYearMonthDay(Calendar destCal, Calendar sourceCal)

Description

copy Year Month Day

License

Apache License

Declaration

public static void copyYearMonthDay(Calendar destCal, Calendar sourceCal) 

Method Source Code

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

import java.util.Calendar;

public class Main {
    public static void copyYearMonthDay(Calendar destCal, Calendar sourceCal) {
        destCal.set(1, sourceCal.get(1));
        destCal.set(2, sourceCal.get(2));
        destCal.set(5, sourceCal.get(5));
    }//from ww w . ja  va 2  s . c o  m
}

Related

  1. calendar(int year, int month, int date, int hourOfDay, int minute)
  2. calendarFor(final int year, final int month, final int day, final int hour, final int minute)
  3. calendarFor(int day, int month, int year)
  4. calendarOf(int year, int month, int day, int hour, int minute, int second, int millis)
  5. createAndValidateCalendar(int month, int day, int year)
  6. getDecimalYear(Calendar calendar)
  7. getFiscalYear(Calendar calendar)
  8. getIntYear(Calendar c)