public static string ToTextFieldString(this DateTime dt) { return dt.ToString("yyyy-MM-dd"); } public static DateTime ToDate(this string str) {