[EMAIL PROTECTED] (Denis McKeon) wrote:
>In <[EMAIL PROTECTED]>,
>Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote:
>>Earl Hood wrote:
>>>
>>> Probably quicker to just subtract 100 from $year if $year > 100
>>> after $yearfull has been set:
>>>
>>> $year -= 100 if $year > 100;
>>
>>Well, 100 must be included, of course:
>>
>> $year -= 100 if $year >= 100;
>
>How about:
>
> $yearfull = $year + 1900;
> $year %= 100;
Everyone seems to be considering number solutions when I see a string
problem:
$year = substr ($year, -2);