Correcting date syntax