adspace
How can we know the number of days between two given dates
using PHP?
Answer Posted / savvy
"The function expects to be given a string containing a US
English date format and will try to parse that format into a
Unix timestamp (the number of seconds since January 1 1970
00:00:00 GMT), relative to the timestamp given in now, or
the current time if none is supplied." --- in php.net So Be
careful when calculating with strtotime(). Therefore in the
above ans it might be like this way
$date1 = date('M-d-Y');
$date2 = "August-07-2007";
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is the difference between htmlentities() and htmlspecialchars()?
if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer
How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
how to detect a mobile device using php
What is difference between static and final in php?
How to create a web form?
sort term descripttion form, report and uery
What is trait in php?
Name and explain five of the PHP error constants?
Tell me what kind of things have you done on the social side?
What sized websites have you worked on in the past?
What is the current stable version of php? What advance thing in php7?
What is the current stable version of php?
Explain me is it possible to destroy a cookie?