I keep getting "Warning: unexpected error in date()" when trying to process dates before 1970. Basically I have a database field with a date of birth in a standard date field (yyyy-mm-dd), and want to display the output as a birthday (e.g. 1st Jan). But, it fails for all the people who were born before 1970.
The codes I have tried are:
print date("jS M",strtotime($dob));
$y=substr($p[cdob],0,4);
$m=substr($p[cdob],5,2);
$d=substr($p[cdob],8,2);
print date("jS M",mktime(0,0,0,$m,$d,$y));
Any ideas on how to format these dates for display?