Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date/time range across two days

Status
Not open for further replies.

AP186

Technical User
Apr 13, 2004
12
GB
Currently using Crystal Reports 8.5
If have two fields within a database (date) and (time)which are populated by wifi scanners. As a working shift covers from 21:00 to 05:00 the following day. I need to be able to produce a date/time range so I can analyse the number of scans across shifts. Any assistance will be greatfully appreciated
 
If you used DateAdd to subtract five hours from the date-time for that shift, it would all come within a single day, which I assume is the problem. This would be somethign like
Code:
if @shift3 then
DateAdd("h", -5, {your.datetime}
else {your.datetime}
You could analyse the resultant values for all shifts - I assume you have some way of recognising them, a way to define @shift3.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top