Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Sorting Dates Post Reply Post New Topic
Author Message
VickiM
Newbie
Newbie
Avatar

Joined: 02 May 2011
Location: United States
Online Status: Offline
Posts: 28
Quote VickiM Replybullet Topic: Sorting Dates
     Posted: 28 Feb 2013 at 10:32am
Hi.  Does anyone know how to get a date with only the mm/dd to sort correctly in Crystal Report?  For example:  I need it to sort:
1/1
1/2
3/10
5/2
5/20 etc
 
instead of:
 
1/1
10/5
11/3
3/15
3/2
 
Any help will be appreciate.
 
 
VickiM
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 28 Feb 2013 at 11:10am
i would convert it to an actual date field and then sort on that. You can set the display of the formula date field to look like your text currently does.
 
date(field + '/2013')


Edited by DBlank - 28 Feb 2013 at 11:11am
IP IP Logged
VickiM
Newbie
Newbie
Avatar

Joined: 02 May 2011
Location: United States
Online Status: Offline
Posts: 28
Quote VickiM Replybullet Posted: 26 Jun 2013 at 9:26am
Oh thank you!  I haven't been on the formum for a while so I didn't see your post.
VickiM
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