Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Group and Sort by VarChar Date Post Reply Post New Topic
Author Message
Cervello
Newbie
Newbie


Joined: 18 Jul 2014
Online Status: Offline
Posts: 26
Quote Cervello Replybullet Topic: Group and Sort by VarChar Date
    Posted: 16 Feb 2017 at 4:31am
I am trying to group and sort by a varchar date that has an erratic format such as this:

Hire Date
1/1/2016
12/5/2016
11/12/2016
2/12/2016

Any help would be greatly appreciated. I was thinking of creating formula fields and they sort on those....but don't know if that would work.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 16 Feb 2017 at 6:39am
I would convert it to a date data type and use that result for sorting and/or grouping

date(table.field)

Edited by DBlank - 16 Feb 2017 at 6:39am
IP IP Logged
Cervello
Newbie
Newbie


Joined: 18 Jul 2014
Online Status: Offline
Posts: 26
Quote Cervello Replybullet Posted: 16 Feb 2017 at 7:48am
Thank you...I was definately complicating it :).
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.015 seconds.