update isValidDate func

using kissy equals method, shortten isValidDate function