Table of Contents

Search

  1. Preface
  2. Function reference
  3. Constants
  4. Operators
  5. Dates
  6. Functions
  7. System variables
  8. Datatype reference

Function Reference

Function Reference

RR format string

RR format string

The transformation language provides the RR format string to convert strings with two-digit years to dates. Using TO_DATE and the RR format string, you can convert a string in the format MM/DD/RR to a date. The RR format string converts data differently depending on the current year.
Current Year Between 0 and 49
If the current year is between 0 and 49 (such as 2003) and the source string year is between 0 and 49,
Data Integration
returns the current century plus the two-digit year from the source string. If the source string year is between 50 and 99,
Data Integration
returns the previous century plus the two-digit year from the source string.
Current Year Between 50 and 99
If the current year is between 50 and 99 (such as 1998) and the source string year is between 0 and 49,
Data Integration
returns the next century plus the two-digit year from the source string. If the source string year is between 50 and 99,
Data Integration
returns the current century plus the specified two-digit year.
The following table summarizes how the RR format string converts to dates:
Current year
Source year
RR format string returns
0-49
0-49
Current century
0-49
50-99
Previous century
50-99
0-49
Next century
50-99
50-99
Current century

0 COMMENTS

We’d like to hear from you!