Fix for peroper day value in datestamp.