Cater for dates as well as dateTimes in referenceTime return value