removed rounding in date function