Jump to content

date time interval issue


sasori

Recommended Posts

How to solve this?

 

I have a dateCreate column at my table and it was created as DATETIME as the data type. the sample data is being saved as e.g 2011-04-05 12:22:32

 

The issue is, I need to have an option in my app to pull out datas based from

1) the last day it was created

2) 3 days ago

3) 5 days ago

4) 1 week ago

5) fortnight ago

6) month ago

7) quarter ago

8 ) 6 months ago

9) year ago

10) year+ ago

:confused:

 

Link to comment
https://forums.phpfreaks.com/topic/232731-date-time-interval-issue/
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.