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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -