made date format a variable