Probably because PropertyType is a [Type] object, not a date time object...
try:
if (prop.PropertyType == typeof(System.DateTimeOffset)) { var p = prop.Name;}
Is is for checking the type, i.e.
var maybeAStringOrMaybeAnInt = GetSomeRandomType();if (maybeAStringOrMaybeAnInt is String)