How do I calculate Days and Nights between to dates in php
where <input type="text" name="FromDate"> <input type="text" name="ToDate">
where FromDate = 02/02/2002 ToDate = 05/02/2002
thanks,
Use the "mktime" function to convert the two dates into a timestamp (the number of seconds between Jan 1 1970 and the date provided).
Then calculate the number of days between the two timestamps (86400 seconds per day).
Could u please show me how,
I am a bit confused with the mktime function