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!

datetime field to date field with parameter

Status
Not open for further replies.

needmoremoney

Technical User
Mar 30, 2005
123
US
I'm trying to convert a datetime field into just a date field.

I have {SBatch.beginDate} as a datetime field.
I want to convert this into a Date field (MM/DD/YYYY) field.

Then after this, I want to run run a parameter that asks for the beginDate.

Not sure how to set this up. Any help.. thanks
 
Just to clarify things more. When I run a parameter to collect data from 04/07/2005, the crystal report only pulls data from 04/07/2005 at 1:00:00pm. I want to eliminate the time. All the data from this date should appear in the report.
 
Date({YourDateTimeField}) should do the trick.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
Thanks,

I'll try that.. my problem is when I run my parameter, it searches for the datetime and not the date. It won't display all the fields but only one field (datetime). ie. 3/1/05 1:00:00am.


thanks though, I'll try that..
 
Sounds like your parameter is in datetime format. Change it to date

-LW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top