Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Another Date Problem Post Reply Post New Topic
Author Message
hcnewhouse
Newbie
Newbie


Joined: 11 Jun 2012
Location: United Kingdom
Online Status: Offline
Posts: 2
Quote hcnewhouse Replybullet Topic: Another Date Problem
    Posted: 11 Jun 2012 at 3:29am
I am producing a quarterly sales report and grouped all sales invoices for each account into quarterly groups.
 
I wish to format the dates showing the Q1, Q2, Q3, Q4 and the year in the header.
 
Is there any easy way to do this?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 11 Jun 2012 at 4:07am
one way:
'Q' + totext(datepart('q',date),0,'') + ' ' + totext(date," yyyy")
IP IP Logged
hcnewhouse
Newbie
Newbie


Joined: 11 Jun 2012
Location: United Kingdom
Online Status: Offline
Posts: 2
Quote hcnewhouse Replybullet Posted: 11 Jun 2012 at 11:03pm
Thanks so much for this...worked perfectly!!! :)
 
Looking at this forum you seem to be a total Crystal God!
IP IP Logged
Clare
Newbie
Newbie
Avatar

Joined: 07 Feb 2013
Location: United Kingdom
Online Status: Offline
Posts: 1
Quote Clare Replybullet Posted: 13 Mar 2013 at 3:14am
Solution worked perfectly for me too!  Thanks for the post :)
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.023 seconds.