Fixing dateformat for historical reports