Re: problem with checkdate ()

From: Date: Fri, 12 Jan 2001 21:35:09 +0000
Subject: Re: problem with checkdate ()
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-4960@lists.php.net to get a copy of this message
what about this: $frmdatecheck = date ("j/n/Y", strtotime ( $FROMdate ) ); if( ! checkdate( list( $j , $n , $y ) = explode( '/' , $frmdatecheck ) ) ) or rather: if( ! call_user_func_array( 'checkdate' , explode( '/' , $frmdatecheck ) ) ) At 22:21 12.1. 2001, Asendorf, John wrote the following: -------------------------------------------------------------- >I'm trying to check a date... the date is saved as dd-Mon-YY > >the following code: > >$frmdatecheck = date ("j, n, Y", strtotime ( $FROMdate ) ); > >if ( !checkdate ( $frmdatecheck ) ) { } > >gives me the following error > >Warning: Wrong parameter count for checkdate() in >D:\root\cc\resolutions\res_search.php on line 621 > >checkdate is defined as >int checkdate (int month, int day, int year) > >any suggestions? > >Thanks in advace, John > > >--------------------- >John Asendorf - jasendorf@lcounty.com >Web Applications Developer >http://www.lcounty.com - NEW FEATURES ADDED DAILY! >Licking County, Ohio, USA >740-349-3631 > >The benefit to the government of replacing all $1 Federal Reserve notes with >$1 coins would be $522.2 million per year, according to estimates of the >General Accouting Office released on April 7, 2000. > > >-- >PHP Windows Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net >For additional commands, e-mail: php-windows-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net ------end of quote------ ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. cynic@mail.cz

« previous php.windows (#4960) next »