Page 1 of 1

Working with dates

Posted: Thu Oct 07, 2010 11:37 am
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

Re: Working with dates

Posted: Thu Oct 07, 2010 12:08 pm
by Jonah Bron
Have you looked at the Date() function?

http://php.net/date