Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

number to date - ordering and charting

number to date - ordering and charting

number to date - ordering and charting

I am using CR 2016 SP2

The dates in the SQL db I have are stored as numbers I convert as follows:

totext({View_MM_LT_Deals_U_AccountBalances_V3.StartDate} + Date(1979, 12, 31)) tis will show when I format to 20-Feb-18 for instance

I had 2 issues - sorting the data by date AND charting the data by date

1. Sorting by date I resolved by grouping by the date NUMBER and then by group "date" formula - I then supressed the first group and the presentation of raw data looks fine in correct date order

2. Where I am stuck is charting - where the date is the X axis. If I use the date NUMBER then it presents the data in correct order BUT shows the number and not the date format I need. If I present by using the "date" formula then it looks good but it doesnt show in the real date order

RE: number to date - ordering and charting

If you leave your date as a date then sort order will be fine.
Remove the Totext() wrapper from your formula.
You can format display of date in Crystal to achieve the format you want as 20-Feb-18 just right click field on designer select date format and then click custom and set as you want.

RE: number to date - ordering and charting

cheers worked fine

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close