Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001122

Re: [PHP] How to convert integers representations of a date to a date format variable From: Brian Clark (brianj <email protected>)
Date: 12/30/01

* Carlos Fernando Scheidecker Antunes (nando <email protected>) [Dec 30. 2001 21:11]:

> So, let's say I have 12 for month, 30 for day and 2001 as year. Do I have to create a timestamp? How to create a
> TimeStamp?

strtotime() can convert it into a unix timestamp.

> I need to store it as 30/12/2001 (but not a string) not only on a session variable but also to make it easier to work with a MySQL table.

For MySQL, this may help:

<http://marc.theaimsgroup.com/?l=php-general&m=100927056511210&w=2>

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Never try to out stare a cat. They've got no eyelids.

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>