add backup dateformat if invalid type is given