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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to subtract 30 minutes from a start time data field

Status
Not open for further replies.

TechOps

Technical User
Apr 14, 2004
2
US
I need to create a formula for boarding time by subtracting 30 minutes from our start time (departure time) field. I am having trouble creating a formula that can do this. Any help would be appreciated.

Thanks [smile]
 
Dateadd("m",-30,{DateTimeField})

Dataadd() did not make its debut until CR V8. If you are using an earlier version you will need to download the dateadd() function from the crystal decisions website. Software Training and Support for Macola, Crystal Reports and Goldmine
714-348-0964
dgilsdorf@mchsi.com
 
Unless you want people arriving 30 months before the departure time, you might want to change the "m" to an "n". [wink]

Naith
 
I stand corrected! Software Training and Support for Macola, Crystal Reports and Goldmine
714-348-0964
dgilsdorf@mchsi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top