Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Formula for year in current date Post Reply Post New Topic
Author Message
snufse
Newbie
Newbie


Joined: 19 Mar 2008
Location: United States
Online Status: Offline
Posts: 36
Quote snufse Replybullet Topic: Formula for year in current date
    Posted: 05 Oct 2009 at 5:11am
I have a date field that I need to compare to year in current date. Not sure how to set up the formual. Thank you
 
{SALESTKT.TICKET_DATE} > CurrentDate


Edited by snufse - 05 Oct 2009 at 7:49am
IP IP Logged
Memoli28
Groupie
Groupie
Avatar

Joined: 10 Apr 2009
Online Status: Offline
Posts: 58
Quote Memoli28 Replybullet Posted: 05 Oct 2009 at 5:21am
 
Hi,
 
create new formula with following:
 
year({SALESTKT.TICKET_DATE} )=year (CurrentDate )
 
some kind of boolean.
 
hope this will help.
 
IP IP Logged
snufse
Newbie
Newbie


Joined: 19 Mar 2008
Location: United States
Online Status: Offline
Posts: 36
Quote snufse Replybullet Posted: 05 Oct 2009 at 7:48am
That worked, thank you.
IP IP Logged
Vertex
Newbie
Newbie
Avatar

Joined: 29 Oct 2009
Location: India
Online Status: Offline
Posts: 24
Quote Vertex Replybullet Posted: 04 Nov 2009 at 7:57pm
how numbervar date can change into the datevar ....give me solution my code is here ...

numbervar yr:=2004;
numbervar monthselect:=12;
numbervar firstday:=1;
datevar createdate:= cDate (yr, monthselect, firstday);
createdate; 
Hi Peoples
IP IP Logged
Vertex
Newbie
Newbie
Avatar

Joined: 29 Oct 2009
Location: India
Online Status: Offline
Posts: 24
Quote Vertex Replybullet Posted: 06 Nov 2009 at 7:26am
plz plz plz ...give solution .... how numbervar date can change into the datevar ....give me solution my code is here ...

numbervar yr:=2004;
numbervar monthselect:=12;
numbervar firstday:=1;
datevar createdate:= cDate (yr, monthselect, firstday);
createdate; 
Hi Peoples
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.