DateDiff in .net seems to round down how can i make it round up!?:
e.g difference is 21.51 but date diff returns 21
i want it to round correctly ie give me 22mins.
Any trick to get this behaviour??:afrog:
DateDiff in .net seems to round down how can i make it round up!?:
e.g difference is 21.51 but date diff returns 21
i want it to round correctly ie give me 22mins.
Any trick to get this behaviour??:afrog:
vb Code:
math.Ceiling(endDate.Subtract(startDate).TotalSeconds / 60)