📅  最后修改于: 2022-03-11 15:02:37.190000             🧑  作者: Mango
export const isDate = date => ((new Date(date) instanceof Date) && !isNaN(new Date(date)) && isNaN(date))
// here third check is added to check if user adds values like 1 , 2 etc