Jump to content

timestamps - bit of a newbie question


Orionsbelter

Recommended Posts

Ok sorry if this is a proper newbie question but say i have a timestamp saved in a database in a table called "news" and the field is called "date" how do i get the month and year only from example if the time stamp is 2011-03-29 13:57:05.

 

And i want to list all news articles from the month 03 and the year 2011 how would i go about doing this?

 

 

Thank you for reading :D

Link to comment
https://forums.phpfreaks.com/topic/232200-timestamps-bit-of-a-newbie-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.