J
JezB
I want to compare two DateTime values but only down to seconds, so how do I
truncate DateTime values to second granularity ?
Similarly, I may want to truncate to the minute granularity.
I also may want to round to the nearest minute.
How do I do these things ? I'm sure it must be really simple but I cant find
anything in the DateTime class. I know I can convert to a numeric date and
time format and do a string compare but I imagine this is a very inefficient
way to do it.
truncate DateTime values to second granularity ?
Similarly, I may want to truncate to the minute granularity.
I also may want to round to the nearest minute.
How do I do these things ? I'm sure it must be really simple but I cant find
anything in the DateTime class. I know I can convert to a numeric date and
time format and do a string compare but I imagine this is a very inefficient
way to do it.