YYYY conversion from string to timestamp or
- date is limited if you use year great than 4-digits. You must
- use after YYYY some non-digit char or template
- else year is always interpreted as 4-digits. For example (with year
- 20000):
- to_date('200001131', 'YYYYMMDD') will bad
- interpreded as 4-digits year, right is use after year non-digit
- separator to_date('20000-1131', 'YYYY-MMDD') or
- to_date('20000Nov31', 'YYYYMonDD').
+ date is limited if you use a year longer than 4-digits. You must
+ use some non-digit character or template after YYYY,
+ otherwise the year is always interpreted as 4-digits. For example
+ (with year 20000):
+ to_date('200001131', 'YYYYMMDD') will be
+ interpreted as a 4-digit year, better is to use a non-digit
+ separator after the year, like
+ to_date('20000-1131', 'YYYY-MMDD') or
+ to_date('20000Nov31', 'YYYYMonDD').