Formatdate fix