Date Formatting

If a column is set to the 'date' column type, you control the exact date format of the column. Also, a pop-up calendar makes it easy for date values to be entered.

To set a column's type to be 'date':

  1. Edit the structure of the table.
  2. In the top 'Structure' panel, double-click or press the space bar in the 'Type' column in the cell that corresponds to the column you are changing.
  3. Choose the 'Date' type.
  4. The date format dialog will appear.

Once you've double-clicked in the 'Extra Type Info' cell, you will see a dialog that lets you control the date formatting for that date column. In the below example the date will appear as "01/25/11":

The Date Format Dialog pops up with the current (or default) format string filled in.  The format string consists of a set of Date Format Markers to indicate how the date value is to be formatted for display.  You can include other (non-%) characters (such as spaces or a comma) in the format to help with the readability of the date.

Date Format Markers: The following character are understood by the date formatting code.  The user can embed them in any string to add custom separators or additional descriptive text.

Format string can contain any separator character and any element from the following list:

%d - day as number ( with leading zero )
%j - day as number ( no leading zero )
%D - abbreviated name of the day
%l - full name of the day
%m - month as number ( with leading zero )
%n - month as number ( no leading zero )
%M - abbreviated name of the month
%F - full name of the month
%y - year as number (2 digits)
%Y - year as number (4 digits)

Date Format Examples:

%m/%d/%Y   ==   01/25/1980
%j-%n-%y    ==    25-1-80
%F %j, %l ==   January 25, Friday

Changing an Existing Date Format

If a column is already of type date, you can get the date format dialog to appear by double-clicking in the 'Extra Type Info' cell to the right of the date cell.

One Date Format Per Table

One Date Format Per Table. Once you set the date format for one column in a table, then all columns of type "Date" will have the same date format.  If you change the format for one Date column, all other Date columns will get that change and their displays will be updated accordingly.