Mohammed,
Just off the top of my head, I don't think this will work unless you
bring the day, month and year in separately. At first glance I thought
perhaps if you took the length of the date string (less than 6 or more
than eight you've got an error), backed out the last four as the year -
so far so good, but the day/month is a problem. How would you evaluate
'212' - as 2 December or 21 February?
Regards,
David A. Barbour
Oracle DBA, OCP
MOHAMMAD AMER wrote:
>
> hi oracle gurus,
> my client is very weird,he wants to enter the date in the format 'dd-mm-yyyy'
> without pressing space instead of delimiters,e.g. he presses
> '991999' and wants oracle to change it to '09-09-1999' .!!!
> Can I do it for him?
> If anyone knows how,I'll be very grateful.
>
> stucked with date formats
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: MOHAMMAD AMER
> INET: [EMAIL PROTECTED]
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: David A. Barbour
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).