mike55 Posted September 12, 2007 Posted September 12, 2007 Any suggestions on how to do this, I am trying to get the number of minutes associated with the time at the moment and then use the Subtract method, don't think that this is the best approach and is going to cause a lot of problems. Mike55. Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
MrPaul Posted September 12, 2007 Posted September 12, 2007 DateTime constructor How about this approach: DateTime roundTime = new DateTime( rawTime.Year, rawTime.Month, rawTime.Day, (rawTime.Minute < 30) ? rawTime.Hour : rawTime.Hour + 1, 0, 0 ); Good luck :cool: Quote Never trouble another for what you can do for yourself.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.