Dates.... (1 Viewer)

fixious

New member
Local time
Today, 22:11
Joined
Apr 30, 2002
Messages
9
I am trying to calculate a jail term used for prison guards. For instance I want to enter a date sentence was passed and the amount of time sentenced like 75 days from the date entered. I would also like to be able to add and subtract days for a few other fields if they apply. Thanks for your help, any ideas would be great.
 

Jack Cowley

Registered User.
Local time
Today, 22:11
Joined
Aug 7, 2000
Messages
2,639
Search help for the DateAdd() function as you will find your answer there.

hth,
Jack
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 17:11
Joined
Feb 19, 2002
Messages
43,365
Day is the default increment so if you subtract two dates, you'll get the difference in days. If you add or subtract a whole number from a date, you'll get a date that many days in the future or past. If you want some different increment, you'll need to use the DateDiff() function. If your dates are not stored in fields defined as date/time data type, you'll need to work out the calculations yourself.
 

Users who are viewing this thread

Top Bottom