DateFunctions.StripMilliseconds

DateTime extension method to return a DateTime value that strips milliseconds from the specified value.

public static DateTime StripMilliseconds(DateTime dateTime)

Return Value

The DateTime value with milliseconds stripped off.

Parameters

dateTime
The DateTime to strip milliseconds from.

Remarks

This is useful when comparing a DateTime to another value that doesn't have milliseconds.


See also:

Class DateFunctions