I want some changes in the date comparison.
In my application I am comparing two dates and getting difference as number of Days, but if there is only one day difference
I usually find out difference in seconds and calculate ceil(diffInSeconds / 86400).
ceil(diffInSeconds / 86400)