fix include-date-prefix option to not rely on to_date method