Wednesday, April 27, 2011

Add/Substract Min/sec with DateTime in c#

To Add Minutes/Seconds

<datetime variable>.AddMinute(double value);
<datetime variable>.Addseconds(double value);


To Substract Minutes/Seconds

<datetime variable>.AddMinute(-(double value));
<datetime variable>.Addseconds(-(double value));