I am experiencing an error where some of the dates in one of my tables are displaying as over 10,000 for the year. For example, the query
SELECT
my_date, to_char(my_date),
(my_date - TO_DATE('1970-01-01','YYYY-MM-DD') ) * 86400,
extract(year from my_date)
FROM my_table
returns:
01-NOV-74 00-000-00 413548617599.9999999999999999999999999997 15074
15-AUG-68 00-000-00 366017127719.9999999999999999999999999999 13568
30-SEP-62 00-000-00 375298841999.9999999999999999999999999998 13862
29-SEP-82 00-000-00 325438773599.9999999999999999999999999998 12282
01-AUG-13 01-AUG-13 1375315200 2013
Any clue what's going on here? The last date looks fine, but the rest are off. Is it some date format I'm not aware of that Oracle is using internally? Or were dates entered incorrectly to this table and I'm out of luck with retrieving the real values?