How can we know the number of days between two given dates
using PHP?
How can we know the number of days between two given dates
using MySQL?

Answer Posted / shaik abdul raheem

SELECT DATEDIFF('2006-04-01','2006-03-01')

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who created numbers?

534


How to remove leading and trailing spaces from user input values?

546


Explain me how failures in execution are handled with include() and require() functions?

614


What is mvc in php?

537


What are the differences between GET and POST methods?

536






Do csrf tokens expire?

507


What is a php object?

509


What is cookie and why do we use it?

533


How to create an array in php?

559


Explain the installation of PHP on UNIX systems?

553


Can we override static method in php?

539


Why php is widely used?

551


Why do you need php?

526


How to convert a json string to an array in php?

559


Is apache needed for php?

511