Fixed ScrolltoDate function