Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Date Difference Post Reply Post New Topic
Author Message
andyp
Newbie
Newbie
Avatar

Joined: 20 Sep 2010
Location: Germany
Online Status: Offline
Posts: 19
Quote andyp Replybullet Topic: Date Difference
    Posted: 20 Sep 2010 at 10:47am
I have a problem in comparing dates and working out the difference between them.
 
I have tried various ways and although on the right track I'm sure a simple solution exists out there somewhere!!
 
Example: 01/01/1980 - 24/08/2009
I am tyring to find a simple way to accurately calculate difference and see the result in the format xx years, xx months and xx days.
Where several sets of From/To dates exist (possibly with breaks in between) I then have the problem of addind up sets of years months and days in order to get a final total number of years months and days (if that makes sence).
 
 
andyp
IP IP Logged
Senthil Raj
Newbie
Newbie
Avatar

Joined: 02 Aug 2010
Location: India
Online Status: Offline
Posts: 27
Quote Senthil Raj Replybullet Posted: 21 Sep 2010 at 1:10am
Live And Let Live...
IP IP Logged
andyp
Newbie
Newbie
Avatar

Joined: 20 Sep 2010
Location: Germany
Online Status: Offline
Posts: 19
Quote andyp Replybullet Posted: 21 Sep 2010 at 7:34am
Thanks very much for the tip. I will try it first thing tomorrow at work and let you know how I got on. (Ive just got hope , time now here in Germany 19.30.
 
Thanks again for your reply!
 
AndyP
IP IP Logged
andyp
Newbie
Newbie
Avatar

Joined: 20 Sep 2010
Location: Germany
Online Status: Offline
Posts: 19
Quote andyp Replybullet Posted: 23 Sep 2010 at 10:59pm
I have had chance to work on my date difference report again today. Your tips have really helped me, thanks once again
 
Andy
IP IP Logged
jeevan485
Newbie
Newbie
Avatar

Joined: 12 Jul 2011
Location: Bahrain
Online Status: Offline
Posts: 1
Quote jeevan485 Replybullet Posted: 12 Jul 2011 at 5:18am
Dears,
 
If i have database fields for dates then how i will get the difference between two days in days months and years (eg 1 Year,11 Months, 13 Days)
 
eg:
 
{EmpLeaveSettlement.LeavingDt} - {EmpMast.JoinDt}
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
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



This page was generated in 0.032 seconds.