internal static bool IsDateTime(this Type type) { return type == typeof(DateTime) || type == typeof(DateTime?); }