There are a number of ways depending on how the value is stored.
I suspect that they have been stored as strings in which case you can use
left_string, right_string and middle_string to separate the 1 from the rest
of the date. Note that the names, left_string etc., are fake and you
should check the appropriate documentation for correct name and usage.
If it is a number, a simple subtraction will suffice.
Of course you need an if statement in there to ensure you convert the right
dates.
----- Original Message -----
From: "gary sanders" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 4:50
Subject: Date fix
> We have an older system that we have to put up with for another year,
> their "fix" for y2k was, like several others, to place a number one before
> the date "ex 1000329 or 1010329 which is interpreted as Mar. 29, 2000 or
> Mar.29, 2001. Is there a way to delete the "1" at the beginning when
> importing? You can do a number of replaces, but this creates other
> problems. You would make my day if someone knew the answer.
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php