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 -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -