Hi,
I have my Author and Publish app servers in different locations and due to this i am having issues when i try fetching time from a date property.
node = hit.getNode(); String dateField = node.getProperty("start").getValue().getString(); out.println(dateField); //2015-04-20T07:15:00.000-05:00 Property startProp = node.getProperty("start"); Calendar startCal = startProp.getDate(); String formattedDate = new SimpleDateFormat("yyyy-MM-dd hh:mm aa").format(startCal.getTime()); out.println("Output= " + formattedDate); Publish: Output= 2015-04-20 12:15 PM Author: Output= 2015-04-20 07:15 AM