Date formats

About

Date/Time format strings define how date and time values are interpreted, converted, and displayed.

A format string consists of format specifiers, with each specifier representing a specific part of a date or time, such as the day, month, year, hour, minute, or second.

Key Features

  • Format Specifiers — Symbols used to represent individual date and time components, such as day, month, year, hour, minute, and second.
  • Case Sensitivity — Most format specifiers are case-insensitive. However, am/pm and a/p require the appropriate casing.
  • Flexible Formatting — Format strings can be combined to match a wide range of date and time representations.

For example:

dd/mm/yyyy

can be used to represent a date such as:

30/08/2026

Using the correct Date/Time format string ensures that values are parsed and formatted consistently during data processing.

Specifier Description
d Day as a number without a leading zero (1-31).
dd Day as a number with a leading zero (01-31).
ddd Day as Short Day Name (Sun).
dddd Day as Long Day Name (Sunday).
ddddd Day in Short Date Format (Sun 5)
dddddd Day in Long Date Format (Sunday 5)
m Month as a number without a leading zero (1-12).
mm Month as a number with a leading zero (01-12).
mmm Month as an abbreviation (Jan-Dec).
mmmm Month as a full name (January-December).
y Year as a two-digit number (00-99).
yy Year as a two-digit number (00-99).
yyyy Year as a four-digit number (0000-9999).
h Hour without a leading zero (0-23).
hh Hour with a leading zero (00-23).
n Minute without a leading zero (0-59).
nn Minute with a leading zero (00-59).
s Second without a leading zero (0-59).
ss Second with a leading zero (00-59).
fff Fraction of Second with a leading zero (000-999). (Works only for oracle time stamp fields)
tt Uses the 12-hour clock for the preceding h or hh specifier, ‘am’ for any hour before noon, and ‘pm’ for any hour after noon.
ampm AM/PM

Understanding Date/Time Formats

It is essential to note that the date/time format is unrelated to the target database. Instead, it defines the format of the source data. This format helps the software convert string data into a date or time type, making it suitable for loading into a date or timestamp field later.

Examples of Source Data and Corresponding Formats

  • Source Data: 16/08/2009Format: DD/MM/YYYY
  • Source Data: 1/31/2009Format: M/D/YYYY
  • Source Data: 2006-05-23 22:34:42.096Format: YYYY-MM-DD HH:NN:SS.FFF
  • Source Data: 1992/mar/12 00:00Format: YYYY/MMM/DD HH:NN

Performance Considerations

  • Processor-Intensive Operation: Applying a date/time format requires significant processing resources.
  • Shorter Formats Are Faster: Using concise formats improves performance.
  • Avoid Month Names: Formats without month names are quicker to process.
  • Comparison:
    • dd/mm/yyyy is faster than d/m/yy.

By selecting appropriate date/time formats, efficiency can be improved while ensuring accurate data conversion.

Optimizing Date/Time Format Application

If the source data is already in the YYYY-MM-DD HH:NN:SS.FFF format, there is no need to apply any additional formatting. This saves processing time and ensures optimal performance, as the data is already in a compatible structure for conversion.

Key Point

  • Avoid unnecessary operations when the source data matches the expected format.

Important: Working with Date and Time fields

For more technologies supported by our ETL Software see Advanced ETL Processor Versions

Confused? Ask question on our ETL Forum

Posted on August 30, 2025 • 3 min read • 560 words
www.etl-tools.com About Support Pricing Cookies Policy Term Of Use Privacy Policy License