public static JsDate toJs(Date java){
  return java == null ? null : create(java.getTime());
}

public static JsDate toJs ( Date java ) { return java == null ? null : create ( java . getTime ( ) ) ; }
converts a java date to a jsdate . if the date is null , the function returns null .
