Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Get DateAdd to add year inside a formula Post Reply Post New Topic
Author Message
RealQMan
Newbie
Newbie
Avatar

Joined: 22 Aug 2007
Online Status: Offline
Posts: 25
Quote RealQMan Replybullet Topic: Get DateAdd to add year inside a formula
    Posted: 03 Oct 2007 at 11:25am
Hi

Working with a formula function at this moment. I have tried two different ways of using DateAdd(), the way I called it was DateAdd("y", 1, DateValue("2007-10-04")) . Some people call it differently like this, DateAdd("y", DateValue("2007-10-04"), 1), which i think is incorrect because it gave me syntax error. Anyhow, DateAdd is not adding one year to the original date. Can anyone verify if this is a known bug? I am using VS 2005 and Crystal Report that comes with it.


IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 04 Oct 2007 at 12:43pm
Looking at the help, it looks like you need to use "yyyy" to add a year.  "y" is the day of the year and adds only 1 day.
 
-Dell
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.