-
SitePoint Enthusiast
How Do I Manipulate Date/Time in PHP3?
I want to be able to make a "last week news" and "monthly news archive" for my site.
Thanks guys!
-
you get your present date with mktime() , then use mktime() and date() to play with the date..
mktime() gives you the number of seconds from january 1, 1969 ...
date() can generate a verbal date with such a number ...
you can subtract / add from that number to reach the month you want 
------------------
SitePoint Moderator
my PHP host
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks