src/org/ohmage/util/DateTimeUtils.java
public static Calendar convertDateToCalendar(Date date) {
		if(date == null) {
			return null;
		}
		
		Calendar result = Calendar.getInstance();
		result.setTime(date);
		return result;
	}
/**
	 * Converts a Date object into a Calendar object.
	 * 
	 * @param date The Date object to be converted into a Calendar object.
	 * 
	 * @return A Calendar object that represents the same date and time as the
	 * 		   Date object.
	 */
Converts a Date object into a Calendar object.

@param date The Date object to be converted into a Calendar object.

@return A Calendar object that represents the same date and time as the
Date object.
Converts a Date object into a Calendar object . @param date The Date object to be converted into a Calendar object . @return A Calendar object that represents the same date and time as the Date object .
public static Calendar convertDateToCalendar(Date date) {
		if(date == null) {
			return null;
		}
		Calendar result = Calendar.getInstance();
		result.setTime(date);
		return result;
	}
public static Calendar convertDateToCalendar ( Date date ) { if ( date == null ) { return null ; } Calendar result = Calendar . getInstance ( ) ; result . setTime ( date ) ; return result ; }
Converts a Date object into a Calendar object.
Converts a Date object into a Calendar object .