
07-12-2004, 12:38 PM
|
 |
|
|
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Dark_Wizard
Try this:
PHP Code:
$bday = explode('-', $bbuserinfo['birthday']); if (date('Y') > $bday[2] AND $bday[2] > 1901 AND $bday[2] != '0000') { require_once('./includes/functions_misc.php'); $vboptions['calformat1'] = mktimefix($vboptions['calformat1'], $bday[2]); $bbuserinfo['birthday'] = vbdate($vboptions['calformat1'], mktime(0, 0, 0, $bday[0], $bday[1], 1992), false, true, false); } else { $bbuserinfo['birthday'] = vbdate($vboptions['calformat2'], mktime(0, 0, 0, $bday[0], $bday[1], 1992), false, true, false); } $birthdate = $bbuserinfo['birthday'];
|
That worked like a charm, thank you, sir.
One last thing, if I want to strip the DAY out of that string, how could I do that? I use
l, FjS, Y
for the birthdays on my board, but in this program I only want
F j, Y
Can this be done?
|