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 - [EMAIL PROTECTED]
>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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
------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.

[EMAIL PROTECTED]



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to