Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: Subtracting Two Dates in the same field
Author
Message
KMendels
Newbie
Joined: 24 Feb 2012
Online Status: Offline
Posts: 14
Topic: Subtracting Two Dates in the same field
Posted: 05 Jun 2012 at 9:57am
Easy part - I would like to subtact two dates from each other to see how many days have elapsed between the two dates.
Hard part - these two dates belong to the same field. DateDiff seems to require two different fields to subtract.
Example:
Case #
Code
Date 3
FSP1 A105 4/16/2012
FSP1 A110 4/22/2012
How can I subtract the 4/16/2012 value from the 4/22/2012 value?
Edited by KMendels - 05 Jun 2012 at 9:58am
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 05 Jun 2012 at 10:10am
datediff('d',{table.date3},next({table.date3}))
IP Logged
KMendels
Newbie
Joined: 24 Feb 2012
Online Status: Offline
Posts: 14
Posted: 05 Jun 2012 at 10:29am
Perfect! Thank you!!!
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.