package Structure;

import java.util.GregorianCalendar;
import j4d.open.*;

class Examplet {

  /* getServerDate retrieve the date of the 4D Server machine
  */
  public String getServerDate(opProcess process) throws opException {

    String mServerDate;

    try{
      GregorianCalendar mDate = TestProcess.GetDate();
      int mDay = mDate.get(Calendar.DAY_OF_MONTH);
      int mMonth = mDate.get(Calendar.MONTH) + 1;
      int mYear = mTime.get(Calendar.YEAR);
      mServerTime = new Integer(mDay).toString() + "/" + new Integer(mMonth).toString()
                    + "/" + new Integer(mYear).toString();
    }
    catch (opException er){throw er;}

    return mServerDate;
  }


}