>Is there a way to use Math.Max to get the maximum date between two dates? I tried to do that and it generates a design time error.
Michel,
Math.Max doesn't support DateTime as operands but an integral value like long and DateTime.Ticks is a long value. ie:
myMaxDate = DateTime.MinValue.AddTicks( Math.Max( dt1.Ticks, dt2.Ticks ) )
Cetin