Re: How to convert integers representations of a date to a date format variable
| From: | Brian Clark | Date: | Mon, 31 Dec 2001 02:25:59 +0000 |
| Subject: | Re: How to convert integers representations of a date to a date format variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79087@lists.php.net to get a copy of this message | ||
* Carlos Fernando Scheidecker Antunes (nando@antunes.eti.br) [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.