Calendar cal = new GregorianCalendar();
int year = cal.get(Calendar.YEAR);
int month = cal.get(Calendar.MONTH);
int day = cal.get(Calendar.DAY_OF_MONTH);
DateTime currentDate = new DateTime();
currentDate.Day = (short) day;
currentDate.Month = (short) month;
currentDate.Year = (short) year;
DateUtils du = new DateUtils(xMSF, this.xTextDocument);
int ff = du.getFormat(NumberFormatIndex.DATE_SYS_DDMMYY);