Added check to avoid saving and setting axis format if it is not  date
format is disabled