It would be nice to have extension method with following signature:
public static int CompareTo(this DateTime source, DateTime target, DateTimePeriod period)
Basically it would do the same as
source.Truncate(period).CompareTo(target.Truncate(period)).
It would be nice to have extension method with following signature:
public static int CompareTo(this DateTime source, DateTime target, DateTimePeriod period)
Basically it would do the same as source.Truncate(period).CompareTo(target.Truncate(period)).