Typo corrected in getDate method