CDateHour - Convert From DateTime, Rounding Down To The Nearest Hour

Category:
Dates and Math
Type:
Snippets
Difficulty:
Beginning
Author:
aaron

Version Compatibility: Visual Basic 6

More information:
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.

Declarations:

Code: