I want to extract records modified on the current date
The $fields[14] is structure as follow: dd/mm/yyyy
Example: 5/3/2004
$year,$mon & $mday are the current date strings
Thank you in advance
The $fields[14] is structure as follow: dd/mm/yyyy
Example: 5/3/2004
$year,$mon & $mday are the current date strings
Code:
my ($fld_day, $fld_mon, $fld_year) = split(/\//,$fields[14]);
if (($year-$fld_year=0) && ($mon-$fld_mon=0) && ($mday-$fld_day=0)) {
print "output here";
}
Thank you in advance