Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Range

Status
Not open for further replies.

EscapeUK

Programmer
Jul 7, 2000
438
GB
I have a date range para. and i would like the dates chosen to be displayed on the report
 
See the faq on common formulas.
There is an entry for parameters created using the 'range' option. Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
Thats great but...

It returns the date and time because that is what the user selects however i would like it only to display the date
 
Think i sorted it myself

I convert the dates using....

DateValue (( Minimum ( {?Date} ) ) )

and

DateValue (( Maximum ( {?Date} ) ) ) ...in formulas

then in another formula i used

"From: " + ToText ({@DatePartingFrom} ) +
" To: " + ToText ({@DatePartingTo} )


It works but is there a better way
 
If you don't need the times anywhere in the report, you can use Crystal's Automatic "Convert DateTime to Date" option, which reads all datetime fields in the report as dates.

Change this for one report under:
File - Report Options. Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top