hi i was wondering how i can display a list of items from mysql database for the current month. my date formate in the database is 0000-00-00.
Thanks
Displays dates
Moderator: General Moderators
-
mattpointblank
- Forum Contributor
- Posts: 304
- Joined: Tue Dec 23, 2008 6:29 am
Re: Displays dates
Code: Select all
echo date("y-m-d g:i:a", strtotime($date));
// assumes $date contains the date row from your database