If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Display Modes |
#11
|
|||
|
|||
Hourly Avg
On Mar 17, 8:12*pm, "KenSheridan via AccessMonster.com" u51882@uwe
wrote: The following function would round a date/time value down to the nearest hour: Public Function RoundToHour(dtmDateTime As Date) As Date * * RoundToHour = CDate(Format(dtmDateTime, "yyyy-mm-dd hh:00:00")) End Function Ken Sheridan Stafford, England That's a very nice, elegant function! James A. Fortune |
#12
|
|||
|
|||
Hourly Avg
Kind of you to say so, James.
Ken Sheridan, Stafford, England James A. Fortune wrote: On Mar 17, 8:12 pm, "KenSheridan via AccessMonster.com" u51882@uwe wrote: The following function would round a date/time value down to the nearest hour: [quoted text clipped - 6 lines] Ken Sheridan Stafford, England That's a very nice, elegant function! James A. Fortune -- Message posted via http://www.accessmonster.com |
|
Thread Tools | |
Display Modes | |
|
|