Feb 1, 2006 #1 endoflux Technical User Aug 6, 2001 227 US Is there a function like DateSerial for Datetime? I'm just trying to produce a field reporting a given datetime minus 6 hours...
Is there a function like DateSerial for Datetime? I'm just trying to produce a field reporting a given datetime minus 6 hours...
Feb 1, 2006 1 #2 lynchg Programmer Nov 5, 2003 347 US You can use the DateAdd with 'h' for the interval argument and a negative 6 for the number value. DateAdd("h",-6,yourDate) Upvote 0 Downvote
You can use the DateAdd with 'h' for the interval argument and a negative 6 for the number value. DateAdd("h",-6,yourDate)
Feb 1, 2006 #3 PHV MIS Nov 8, 2002 53,708 FR Another way: [your DateTime field]-0.25 Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
Another way: [your DateTime field]-0.25 Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886