Ken
I use the date as a parameter field to search a report for records between 2 dates. I just wanted to know how to input the dates so crystal could use them. Presently I use
if {?Start Date} = "" then PrintDate
Else
If NumericText(Left({?Start Date},2)) = True
Then if NumericText(Right(Left({?Start Date},5),2)) = True
Then Date(ToNumber(Right ({?Start Date},4)),ToNumber(Left({?Start Date},2)),ToNumber(Right(Left({?Start Date},5),2)))
Else Date(ToNumber(Right ({?Start Date},4)),ToNumber(Left({?Start Date},2)),ToNumber(Right(Left({?Start Date},4),1)))
Else if NumericText(Right(Left({?Start Date},5),2)) = True
Then Date(ToNumber(Right ({?Start Date},4)),ToNumber(Left({?Start Date},1)),ToNumber(Right(Left({?Start Date},4),2)))
Else Date(ToNumber(Right ({?Start Date},4)),ToNumber(Left({?Start Date},1)),ToNumber(Right(Left({?Start Date},3),1)))
And I was just wondering if there were any other formulas out there that were different, shorter, and any that excepted 01 instead of 2001 for a year.Sorry I was so unclear on the question.