Hello PHP-users,
given the following code snippet to convert ISO-date-strings to localized
date-strings:
<?php
$stringArray = explode("-", "1985-01-01");
$month = $stringArray[1];
$day = $stringArray[2];
$year = $stringArray[0];
$date = mktime(0,0,0,$month,$day,$year);
$value = strftime("%d.%m.%Y", $date);
echo $value;
?>
This code works fine as long as I use dates after 1970, all earlier
dates result in an empty value.
According to the docs, mktime is supposed to work fine with 4-digit
dates.
What is the problem here...
Greetings,
Dirk
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]