Hi ALL,
I have a developed a initiation form for my Work-Flow : In wft file under TAG_info section i have some date fields (text boxes in that i am getting selected dates form calender) .
I want to find no of days between those two days form initiation form for that iam using this code :
#my $chk_in = '28/06/2004';
#my $chk_out = '05/07/2004';
my $chk_in=$uWriteByDate;
my $chk_out=$uReviewByDate;
my $Output1="C:/iw-home/Output1.txt";
open OUT, ">$Output1" or die "Cannot open $Output1 for write :$!";
print OUT "Dates are $uWriteByDate, $uReviewByDate \n";
@array1=split /\//, $chk_in;
@array2=split /\//, $chk_out;
#print
@array1[0];
my
@chk_in1 = (
@array1[2] ,
@array1[1],
@array1[0]);
my
@chk_out1 = (
@array2[2] ,
@array2[1],
@array2[0]);
print OUT "
@chk_in1\n";
#SAN
#SAN
if($uWriteByDate != " ")
{
my $j = Delta_Days(
@chk_in1 ,
@chk_out1);
}
print OUT "Number of days are $j\n";
When iam hard coding both date paramets i am getting no of days, but when iam passing both dates from initiation form this line is not getting executed :my $j = Delta_Days(
@chk_in1 ,
@chk_out1);
To execuet this line after the date fields have filled in initiation form where i need to keep this line or this code.
Teamsite version is 6.0.
And on windows platform (win 2000 professional).
Iam stucked in this, any help will be thankful.
San.