I have two dates in the format year-month-day hour:minute:sec
For example : 2015-01-01 10:00:00 and 2015-01-10 11:00:00. I want to calculate number of days between these two days as 10.
I tried localtime function, but didn't work. I need a solution for this in perl. Please help.