refine date statment