-1

I am getting php date with date("Y-m-d") as 2014-03-14 and

mysql timestamp is 2014-03-02 03:2:23

I want to get as 12 days.

1 Answers1

1
SELECT DATEDIFF('2014-03-14',DATE(mysql_timestamp))
Alex
  • 16,739
  • 1
  • 28
  • 51