Working with dates

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nite4000
Forum Contributor
Posts: 209
Joined: Sun Apr 12, 2009 11:31 am

Working with dates

Post by nite4000 »

Hey all


I was wondering if someone could help me with working with dates. I need to be able to get info from a db.

ex would be like get info for the current year so I would show this year only data
then for the current month,current week(sun-sat format) then for today only which for the today code I know how to do but the year,month and week I need some help with


Thanks
Don
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Working with dates

Post by Jonah Bron »

Have you looked at the Date() function?

http://php.net/date
Post Reply