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

Default date format

Default date format

The application uses a default date format to store and manipulate strings that represent dates. Because
Data Integration
stores dates in binary format,
Data Integration
only uses the default date format in certain circumstances.
Data Integration
only uses the default date format when you perform the following actions:
Convert a date to a string by connecting a date/time field to a string field.
The application converts the date to a string in the default date format, MM/DD/YYYY HH24:MI:SS.
Convert a string to a date by connecting a string field to a date/time field.
The application expects the string values to be in the default date format, MM/DD/YYYY HH24:MI:SS. If an input value does not match this format, or it is an invalid date,
Data Integration
skips the row. If the string is in the default date format,
Data Integration
converts the string to a date value.
Use TO_CHAR(date, [format_string]) to convert dates to strings.
If you omit the format string,
Data Integration
returns the string in the default date format, MM/DD/YYYY HH24:MI:SS. If you specify a format string,
Data Integration
returns a string in the specified format.
Use TO_DATE(date, [format_string]) to convert strings to dates.
If you omit the format string,
Data Integration
expects the string in the default date format, MM/DD/YYYY HH24:MI:SS. If you specify a format string,
Data Integration
expects a string in the specified format.
The default date format of MM/DD/YYYY HH24:MI:SS consists of:
  • Month (January = 01, September = 09)
  • Day (of the month)
  • Year (expressed in four digits, such as 1998)
  • Hour (in 24-hour format, for example, 12:00:00AM = 0, 1:00:00AM = 1, 12:00:00PM = 12, 11:00:00PM = 23)
  • Minutes
  • Seconds

0 COMMENTS

We’d like to hear from you!