I have a database that stores bithdays in a column. I can extract the date as thus:
$column = "Birthday";
$result = mysql_query ("SELECT UNIX_TIMESTAMP($column) FROM $table_name WHERE RecNum = \"$svRecNum\" ");
$unix_timestamp = mysql_result ($result, 0, 0);
$Birthday_date = date("l, F j, Y", $unix_timestamp);
If you were born on 1970/01/01, this returns the date as:
"Thursday, January 1, 1970"
This works great for MySQL dates that are from 1/1/1970 and later. But how to convert dates to this format for dates earlier than that? Any dates earlier than that are returned as:
"Wednesday, December 31, 1969"