calculate no of days between mysql timestamp and php current date -


this question has answer here:

i getting php date date("y-m-d") 2014-03-14 ,

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

i want 12 days.

select datediff('2014-03-14',date(mysql_timestamp)) 

Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -