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 );
String myDate = du.format(ff, currentDate);
XDocumentInfoSupplier xDocInfoSuppl = (XDocumentInfoSupplier) UnoRuntime.queryInterface(XDocumentInfoSupplier.class, xTextDocument);
XDocumentInfo xDocInfo2 = xDocInfoSuppl.getDocumentInfo();
Helper.setUnoPropertyValue(xDocInfo2, "Author", fullname);
Helper.setUnoPropertyValue(xDocInfo2, "ModifiedBy", fullname);