Fix date format handling for axes