?
Solved

convert currentdate to YYYYMMDD in crystal

Posted on 2011-10-18
2
Medium Priority
?
430 Views
Last Modified: 2012-05-12
I need to create a record select query in Crystal that will do from 7 days ago to yesterday.
Currentdate -7 to currentdate -1

The issue is that the current_date field is stored as YYYYMMDD in text format.

How can I create a formula that wil allow this to happen?

0
Comment
Question by:hwassinger
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 2000 total points
ID: 36988299
Use a selection rule of...

{table.datefield}>=totext(Currentdate-7, "yyyyMMdd") and {table.datefield}<=totext(Currentdate-1, "yyyyMMdd")
0
 

Author Closing Comment

by:hwassinger
ID: 36988548
Fantastic & Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question