Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Verification (Operators)

Status
Not open for further replies.

Alphabin

Programmer
Dec 8, 2002
119
CA
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


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
 
PaulTeg;

It simply doesn't work. No errors, but it doesn't return any records. I think it's related to my split statement
 
We'll need more code.
Also a couple of lines of data would be a help
--Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top