fix for dateformat