Thread
:
PHP Date Question??
View Single Post
12-02-2001, 01:00 PM
Theo
HAL 9000
Industry Role:
Join Date: May 2001
Posts: 34,515
echo gmDate("m j Y");
this will print today
echo gmDate("m j Y",time() - 86400);
this wil print yesterday
multiply 86400 x the no of days you want, In your case is 5. So you'll put
echo gmDate("m j Y",time() - 432000);
Theo
View Public Profile
Visit Theo's homepage!
Find More Posts by Theo