refine print date helper and fixes