Thanks a lot.
---------------------------------------------------------------
SQL> select to_char(to_date(strt, 'J'), 'MM-DD-YYYY') "real",
2 to_date(strt, 'dd/mm/yy') "wrong",
3 strt
4 from my_table where rownum < 10;
real wrong STRT
---------- --------- ----------
08-11-4436 10-OCT-32 101032
11-10-4436 10-NOV-23 101123
11-10-4436 10-NOV-23 101123
11-19-4436 10-NOV-32 101132
11-21-4436 10-NOV-34 101134
11-21-4436 10-NOV-34 101134
12-02-4436 10-NOV-45 101145
12-12-4436 10-NOV-55 101155
12-19-4436 10-NOV-62 101162
select to_char(to_date(101032, 'J'), 'DD-MON-YYYY AD') "real" from dual;
real
--------------
11-AUG-4436 BC
If they are in some julian format, then the critical question is when is
the epoch of that format. Common values are '01-JAN-1970' or
'01-JAN-1000' but those aren't likely given that data either (Oracle's
is '01-JAN-4712 BC'). Frankly, there's no hope in guessing, you need to
know the actually dates for some of those values.
Richard
I don't think it's Julian date. Not in Oracle definition, at least:
1* select to_char(to_date('101032', 'J'), 'MM/DD/SYYYY') FROM DUAL
SQL> /
TO_CHAR(TO_
-----------
08/11/-4436
You see, if you interpret it as Julian, it's way B.C. date.
to_char( to_date( strt, 'RRDDD' ), 'yyyy mm dd' )
to see.
"Jeff Y. Y." <yuan...@yahoo.com> wrote in message
news:a2bc9497.02041...@posting.google.com...