Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Date to Number Post Reply Post New Topic
Author Message
spl1
Newbie
Newbie
Avatar

Joined: 18 Jun 2009
Location: United Kingdom
Online Status: Offline
Posts: 20
Quote spl1 Replybullet Topic: Date to Number
     Posted: 01 Feb 2010 at 8:30am
Hi
I've been able to change a date field to a numeric ie Jan 1st = 1
However, I need to keep the number rolling through the years so next year Jan 1st = 366 and so on.
Any idea's?
Sarah
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 01 Feb 2010 at 11:01am
Well if you want a fixed number of days say from 1/1/2009, then you could do this datevalue(currentdatetime)-datevalue(2009,01,01).
 
Hope this helps.
IP IP Logged
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