Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Report Design
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Report Design
Topic: Determine the total hours between two Dates
Author
Message
Douang
Newbie
Joined: 15 Nov 2011
Location: United States
Online Status: Offline
Posts: 12
Topic: Determine the total hours between two Dates
Posted: 14 Mar 2013 at 5:45am
I created a formula within my crystal reports to determine the total hrs between two datetime fields.
Datediff(minute,{StartTime}, {EndTime}) / 60.0
When I compiled the formula, I got error saying "Not enough arguments have been given to this function"
Thank you in advance for your help!
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 14 Mar 2013 at 6:57am
it is different syntax from sql.
use 'n' to indicate minutes
datediff(
'n'
,{StartTime}, {EndTime}) / 60.0
Edited by DBlank - 14 Mar 2013 at 6:57am
IP Logged
Douang
Newbie
Joined: 15 Nov 2011
Location: United States
Online Status: Offline
Posts: 12
Posted: 14 Mar 2013 at 7:09am
Thank you very much!
That did the trick!
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
delete your posts in this forum
You
cannot
edit your posts in this forum
You
cannot
create polls in this forum
You
cannot
vote in polls in this forum
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
BAEZL
© 2004-2026 Brian Bischof. All Rights Reserved.