This small php snippet will help you to find the difference between two given dates
| functiond_diff($start, $end) { $start_ts= strtotime($start); $end_ts= strtotime($end); $diff= $end_ts- $start_ts; returnround($diff/ 86400);} echod_diff("10-3-2011","29-3-2012"). ‘ days’; | 
 
0 comments:
Post a Comment