Using PHP I store a datetime in a mySQL table. I am trying to draw that out and reformat the time.
The datetime is contained within the array $user_data['6'] and the format in the mySQL table is set to datetime.
The error I'm getting is Call to a member function format() on a non-object
$joindate = strtotime($user_data['6']); $joindate = $joindate->format('l F Y H:i:s');
Is there a way to get passed this?