protected override bool IsValidImpl(object value)
        {
            if (VerifiableMember.MemberType == typeof(DateInfo))
            {
                return(true);
            }

            if (value is DateInfo)
            {
                return(true);
            }

            if (value is string strValue)
            {
                return(StringDateInfoDeterminer.Is(strValue, _style));
            }

            return(StringDateInfoDeterminer.Is(value.ToString(), _style));
        }
 /// <summary>
 /// To DateInfo
 /// </summary>
 /// <param name="str"></param>
 /// <param name="defaultVal"></param>
 /// <returns></returns>
 public static DateInfo CastToDateInfo(this string str, DateInfo defaultVal = default)
 => StringDateInfoDeterminer.To(str, defaultVal: defaultVal);