You are here: Decode and Encode Date from variables « PHP Programming Language « IT news, forums, messages
Decode and Encode Date from variables

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация