public static Timestamp startCalendar(Container jc,Timestamp value,SimpleDateFormat format,int displayType,String title){
  log.config("Date=" + value);
  Frame frame=Env.getFrame(jc);
  Calendar cal=new Calendar(frame,title,value,displayType);
  AEnv.showCenterWindow(frame,cal);
  Timestamp result=cal.getTimestamp();
  log.config("Result=" + result);
  if (result == null)   result=value;
 else   if (result.compareTo(new Timestamp(-1)) == 0)   result=null;
  cal=null;
  return result;
}

public static Timestamp startCalendar ( Container jc , Timestamp value , SimpleDateFormat format , int displayType , String title ) { log . config ( "Date=" + value ) ; Frame frame = Env . getFrame ( jc ) ; Calendar cal = new Calendar ( frame , title , value , displayType ) ; AEnv . showCenterWindow ( frame , cal ) ; Timestamp result = cal . getTimestamp ( ) ; log . config ( "Result=" + result ) ; if ( result == null ) result = value ; else if ( result . compareTo ( new Timestamp ( - 1 ) ) == 0 ) result = null ; cal = null ; return result ; }
invalid entry - start calendar
