public static long dateValueFromDate(long ms){
  Calendar cal=getCalendar();
  cal.setTimeInMillis(ms);
  return dateValueFromCalendar(cal);
}

public static long dateValueFromDate ( long ms ) { Calendar cal = getCalendar ( ) ; cal . setTimeInMillis ( ms ) ; return dateValueFromCalendar ( cal ) ; }
convert a utc datetime in millis to an encoded date in the default timezone .
