I currently have a database that calculates the Beg and End Date for the time it took an order to be ordered. I'm using Crystal 8.5. I'm trying to find out how long it took for the order to be taken, but am having a hard time doing it. Can someone please help me.
Thank you
The formula for the Begin Date is:
{BADPLPP.LPADT1}&"/"&{BADPLPP.LPADT2}&"/0"&{BADPLPP.LPADT3}
The formula for the End Date is:
stringvar MyDate := totext({badplpp.lpldd},0,"");
if len(MyDate) = 5
then
cdate(2000+val(right(MyDate,2)), val(left(MyDate,1)),val(mid(MyDate,2,2)))
else
if len(MyDate) = 6
then
cdate(2000+val(right(MyDate,2)), val(left(MyDate,2)),val(mid(MyDate,3,2)))
Thank you
The formula for the Begin Date is:
{BADPLPP.LPADT1}&"/"&{BADPLPP.LPADT2}&"/0"&{BADPLPP.LPADT3}
The formula for the End Date is:
stringvar MyDate := totext({badplpp.lpldd},0,"");
if len(MyDate) = 5
then
cdate(2000+val(right(MyDate,2)), val(left(MyDate,1)),val(mid(MyDate,2,2)))
else
if len(MyDate) = 6
then
cdate(2000+val(right(MyDate,2)), val(left(MyDate,2)),val(mid(MyDate,3,2)))