IsDateTime

public static bool IsDateTime(this Type type)
{
	return type.Equals(typeof(DateTime));
}
Example:
Type type = DateTime.Now.GetType();
bool isString = type.IsDateTime();

Description

Checks whether the type is DateTime.

Details

Double click on the code to select all.

 

;