Click here to Skip to main content
15,891,423 members
Articles / Programming Languages / C#

Rounding a DateTime Object to a Defined Number of Minutes

Rate me:
Please Sign up or sign in to vote.
4.35/5 (6 votes)
23 Mar 2008CPOL 51.5K   22  
A simple two line function to round a DateTime up, down, or to a nearest defined number of minutes

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO QuestMetrics
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions