Incorporate time in getDateValue, and refactor getDate and getIsValid to call getDateValue to pick this up.