|
Posted by Marius III on 10/12/05 22:42
Hi there friends,
I want to encode a date in PHP5.
I have 3 variables for ex:
$day = 20 (integer)
$month = 10 (integer)
$year = 2005 (integer)
These 3 variables must be converted to a valid date for ex:
$paymentdate = EncodeDate($year, $month, $day);
Now I want to save the $paymentdate variable in a MySQL Date field.
BTW: I am looking for a similar function than the example "EncodeDate()".
I my primary programming language there is a encodedate() function.
Please advice,
Thank you in advance!!!
Navigation:
[Reply to this message]
|