Thursday, June 2, 2011

Best way to calculate the difference between date time

As a developer we always need to compare dates(with time or without) & get the no. of days, years, weeks, hours, minutes, seconds according to the requirement. So that why shoudn't a function which does all these. With the help of this function you can get the difference between two dates or times very easily. Whole code is written in php.

No comments:

Post a Comment