![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
joe=> select to_date('19450323','CCYYMMDD'); to_date ------------ 2045-03-23 (1 row) joe=> select to_date('19450323','YYYYMMDD'); to_date ------------ 1945-03-23 (1 row) I thought the former would be "more" correct. But it seems I am mistaken. |
#3
| |||
| |||
|
|
Joe Brown wrote: joe=> select to_date('19450323','CCYYMMDD'); to_date ------------ 2045-03-23 (1 row) joe=> select to_date('19450323','YYYYMMDD'); to_date ------------ 1945-03-23 (1 row) I thought the former would be "more" correct. But it seems I am mistaken. Uh, 1945 _is_ in the 20th century, but I can see how it is confusing. Yes, but the other way around: to_date('19450323','CCYYMMDD') |
![]() |
| Thread Tools | |
| Display Modes | |
| |