Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Parameter Report Field Post Reply Post New Topic
Author Message
pjgreports
Newbie
Newbie
Avatar

Joined: 29 Jul 2011
Online Status: Offline
Posts: 14
Quote pjgreports Replybullet Topic: Parameter Report Field
     Posted: 30 Sep 2011 at 10:20am

Hello - I have a users that are prompted for input parameters.  The parameters of start date and end date are stored on the report.  Start date report field is:  ?Start Date(yyyyMMdd) and End Date report field is: ?End Date(yyyyMMdd).  example of data 20110930.  Would like to convert it to 09/30/2011. Your help would be much appreciated.

 
example on report:
     Start Date: 20110930   End Date: 20110930
 
Would like to see converted to:
    Start Date: 09/30/2011  End Date: 09/30/2011
 
Thanks,
 
 
 
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 03 Oct 2011 at 8:50am
cdate(val(left({?StartDate},4)),val(mid({?StartDate},5,2)), val(mid({?StartDate},7,2) ))
IP IP Logged
pjgreports
Newbie
Newbie
Avatar

Joined: 29 Jul 2011
Online Status: Offline
Posts: 14
Quote pjgreports Replybullet Posted: 03 Oct 2011 at 10:48am
Thank You very much !! That worked !!!  You headed me in the right direction.
cdate(val(left({?End Date(yyyyMMdd)},4)),val(mid({?End Date(yyyyMMdd)},5,2)), val(mid({?End Date(yyyyMMdd)},7,2)))
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