Find the difference between two dates using PHP? -


this question has answer here:

i have 2 dates of form:

start date: 2013-05-19  end date: 2013-05-21 

now need find difference between these 2 in following form:

2013-05-20 2013-05-21 

how can in php?

this should converting iso unix: http://www.laughing-buddha.net/php/dates most efficient way convert iso date unix timestamp?

you subtract 1 date other, divide 3600 , end difference in days, if understood question properly


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -