Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Dates Five Years Out - simple question Post Reply Post New Topic
Author Message
lentil
Newbie
Newbie
Avatar

Joined: 28 Feb 2010
Location: Australia
Online Status: Offline
Posts: 18
Quote lentil Replybullet Topic: Dates Five Years Out - simple question
    Posted: 13 Apr 2010 at 2:10pm
Hi this is a really simple question but mind has gone blank!

I want to add a date to a date field !!

So my current date 15/04/09  I want to add five years to that date and make it 15/0414 via formula and add it to the report

Regards

Leith

IP IP Logged
FrnhtGLI
Senior Member
Senior Member
Avatar

Joined: 22 May 2009
Online Status: Offline
Posts: 347
Quote FrnhtGLI Replybullet Posted: 14 Apr 2010 at 2:12am
dateadd('y', +5, {table.datefield})
|< /\ '][' ( )
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Apr 2010 at 3:46am
just to clarify:
dateadd('yyyy', 5, {table.datefield})
yyyy=year
y=day of year
IP IP Logged
lentil
Newbie
Newbie
Avatar

Joined: 28 Feb 2010
Location: Australia
Online Status: Offline
Posts: 18
Quote lentil Replybullet Posted: 14 Apr 2010 at 10:24am
Thanks I knew how simple it was I just couldnt remember off the top of my head!


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.031 seconds.