Added date conversion to cater for server side (long time in millis) and
client site (javascript Date) variable difference.