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

YY format string

YY format string

The following expression converts a string to a four-digit year format. The current year is 1998:
TO_DATE( DATE_STR, 'MM/DD/YY')
DATE_STR
RETURN VALUE
04/01/98
04/01/1998 00:00:00
08/17/05
08/17/1905 00:00:00
For the second row, RR returns the year 2005, but YY returns the year 1905.

0 COMMENTS

We’d like to hear from you!