Get normal user readable date/time with php
问题 I know this question has been asked 2-3 times before, and I am using a function which I found in one of the answers(check it here) from those questions, but it doesnt seem to be working fine for me, i asked there in comments but didnt get any reply, so I am opening a new question here. following is the code to get plain text date/time from a datetime(mysql type). function getElapsedTime($time_stamp) { $ts = convert_datetime($time_stamp); $time_stamp = $ts; $time_difference = strtotime('now')