cancel
Showing results for 
Search instead for 
Did you mean: 

How to hardcode date(s) in Crystal Reports?

Former Member
0 Kudos

Post Author: Vishy

CA Forum: Formula

Hi,

Any one have any idea about, how to hardcode the date(s) in Crystal Reports?

For example, I want hardcode the US holidays in my Crystal Report.

I am using Version 9.0.

Your immediate help is greatly appreciated

Thanks,

Vishy

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Post Author: SKodidine

CA Forum: Formula

Not sure about CR 9 but in CR XI, there is a custom repository function called cdStatutoryHolidays that you can customize for your holidays and use it in multiple reports if need be.

Former Member
0 Kudos

Post Author: yangster

CA Forum: Formula

What are you going to do with these hard coded dates?You could create a custom function that resides in the repository so you can reuse the function over many reports instead of creating variables inside a single report.

Former Member
0 Kudos

Post Author: chantilly

CA Forum: Formula

Not sure I'm the best person to answer because I seem to be experimenting in my own inexperience. What I would try first would be to create variables for each of the holidays and pull them into the report. Such as

dateVar Christmas := Date (2007, 12, 25);Christmas

I think you can then perform more calculations on it, such as to find how many days etc.