Y2K date
| From: | (CESBRON S.) | Date: | Tue, 17 Oct 2000 08:12:57 +0000 |
| Subject: | Y2K date | ||
| Groups: | php.db php.windows | ||
| Request: | Send a blank email to php-db+get-3669@lists.php.net to get a copy of this message | ||
Hi everybody,
I'm getting trouble with date usage. I've got a database with a date field
in it. This date is for example set up to 01/01/2000. I wanted to display
it, and before doing such a task, I had to reformat it with the usage of
the date function.
Here is my code :
$DateN = date("d/m/Y",$DateN);
echo "$DateN";
Here's what I get :
01/01/1970
Is anyone aware of this ?
What can I do ?
Any suggestions will be greatly appreciated.
Thanks
Stéphane
Stéphane Cesbron
Chargé du développement Internet/Intranet
AUDENCIA
Nantes.Ecole de Management
8 route de la Jonelière
B.P. 31222
44312 Nantes Cedex 3
Tél : 02.40.37.34.47