Hi all,
I am trying to fetch a date field value from a form by using below code snippet :
public Document execute(Document origDoc, DocbaseXFormsContext context)
throws AdaptorException {
JXPathContext validateContext = JXPathContext.newContext(origDoc);
DfClientX clientX = new DfClientX();
IDfSession session = null;
try {
session = getSessionFromDocBase();
logger.info("Executing FSSVHD correction processor");
System.out.println("Executing Document Processor.....");
String rootPath = "/Activity/ProcessData/Variables/";
String invoiceDate = validateContext.getPointer(
rootPath + "InvoiceActualDate").getValue().toString();
System.out.println("invoice date = " + invoiceDate);
}
But getting the date as 5:30 hours less then the date and time mentioned in the forms fields at form submission time.
Kindly suggest if i can get the exact same date time value, as mentioned in the form.
Thanks & Regards,
Avdhesh Gaur