smerny Posted December 26, 2009 Share Posted December 26, 2009 ($row['totime']-$row['fromtime'])/60 this is giving me 0 example of totime and fromtime are: 2009-12-26 01:10:05 and 2009-12-26 1:03:01 i was thinking that with those values i would end up with something like 7 Link to comment https://forums.phpfreaks.com/topic/186359-difference-between-datetimes/ Share on other sites More sharing options...
smerny Posted December 26, 2009 Author Share Posted December 26, 2009 figured it out... they were strings not dates... the strtotime() function worked for me Link to comment https://forums.phpfreaks.com/topic/186359-difference-between-datetimes/#findComment-984121 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.