Added autoCorrecting date function