how to show data from database in 10 hours ago
ex: Article
id | title | date ( using datetime) |
1 | data1 | 2014-02-1 01:00:00
2 | data2 | 2014-02-1 07:00:00
3 | data3 | 2014-02-1 11:00:00
4 | data4 | 2014-02-1 12:00:00
Now = 2014-02-1 12:00:00
query select * from Article where date < 10 hours ago from now()
Output :
2 | data2 | 2014-02-1 07:00:00
3 | data3 | 2014-02-1 11:00:00
4 | data4 | 2014-02-1 12:00:00