Hello,

I am trying to compare a MySQL date to a user entered date in Perl.

Basically,

while ( my @data = $sth->fetchrow_array() ) {
         print($data->{'day'});
         if($data->{'day'} eq $userdate)
	{
		$conflict = 1;
		break;
	}
}

Being Perl code, I wasn't sure if posting in databases was inappropriate. But finding out what format MySQL returns as a date would be very helpful, at the least (IE string, int etc).

Thanks

Stupid question. Issue resolved. Please close...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.