On approximately 10/11/2004 11:28 AM, came the following characters from
the keyboard of Frazier, Joe Jr:
I have an app which has two radio buttons. One is a text field which
controls a date range ((today -1) - text field value to create a date.
The other is a set of two DateTime controls. Th
;End->GetDate())[2,1,0];
my $date2 = sprintf "%04d%02d%02d", ($win->Start->GetDate())[2,1,0];
$win->tfDays->Text( $date1 - $date2); }
Is broken like crazy. Subtracting 20040930 from 20041014 gives 84 days,
which is obviously not right. I changed to:
sub Start_Change
{
nge
below...
Basically
my $date1 = sprintf "%04d%02d%02d", ($win->End->GetDate())[2,1,0];
my $date2 = sprintf "%04d%02d%02d", ($win->Start->GetDate())[2,1,0];
$win->tfDays->Text( $date1 - $date2); }
Is broken like crazy. Subtracting 20040930 from 2004
3 matches
Mail list logo