Report Design
 Crystal Reports Forum : Crystal Reports .NET 2003 : Report Design
Message Icon Topic: Date handling in XI Post Reply Post New Topic
Author Message
Eany
Newbie
Newbie
Avatar

Joined: 21 Nov 2007
Location: United Kingdom
Online Status: Offline
Posts: 17
Quote Eany Replybullet Topic: Date handling in XI
    Posted: 05 Feb 2008 at 5:50am
My rpt access dates from an SP.

When the SP is run interactively,
the dates are returned as Nulls, or YYYY-MM-DD HH:MM:SS.DDD   (e g 2008-01-22 00:00:00.000)

I created a formula :

If isnull({Date})
    Then " "
else
    ToText({Date}, "yyyy-mon-dd")


The ISNULL works OK, but if there is a date,
as above, I get
2008-0on-22, instead of 2008-Jan-22.
Eany
IP IP Logged
rahulwalawalkar
Senior Member
Senior Member
Avatar

Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Quote rahulwalawalkar Replybullet Posted: 05 Feb 2008 at 6:36am

Hi

 
use the following
 
ToText({date}, "yyyy-MMM-dd")
 
cheers
Rahul
IP IP Logged
Eany
Newbie
Newbie
Avatar

Joined: 21 Nov 2007
Location: United Kingdom
Online Status: Offline
Posts: 17
Quote Eany Replybullet Posted: 05 Feb 2008 at 6:51am
Many thanks Rahul : so obvious !
Eany
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.018 seconds.