I apologize if this has been asked, I’ve just filtered through about 40 questions on this site and other sites about formatting dynamic datetime and have only seen answers for date() etc. The issue is that I am trying to format registration dates and last login dates for a member based system that currently is formatted as such: 2012-09-29 10:21:40 to Sep 2012but as this is dynamic data I am not sure how to do this. This information is pulled from the database as such, just for the sake of clarification:
$sql = mysql_query("SELECT * FROM members WHERE id='$id'");
while($row = mysql_fetch_array($sql)){
$username = $row['username']; // Ignore
$sign_up = $row["sign_up"];
$last_login = $row["last_login"];
}
As
date()doc says: