CDateHour - Convert From DateTime, Rounding Down To The Nearest Hour
Category:Dates and Math
Version Compatibility: Visual Basic 6
This function can be used in timecard type applications. I use it in combination with Microsoft Outlook Journal so that I can bucketize what apps I'm working on at what time.
Instructions: Copy the declarations and code below and paste directly into your VB project.