Beispiel #1
0
    public override object StringToField(string from)
    {
        //if you can't convert to date time.. .return null
        DateTime date;

        if (!DateTime.TryParse(from, out date))
        {
            ErrorTracker.Add(string.Format("Failed to parse date {0}.", from));
            return(null);
        }
        return(date);
    }