Table of Contents
How to use DateTime columns in wpDataTables
Say your match schedule lists kick-off times such as 22/10/2026 01:30 PM. In a DateTime column, wpDataTables reads each value as a date with a time, sorts the matches in time order and lets visitors filter them by a from-to range, for example all matches on one weekend.
How do I make a column a DateTime column with Tabella AI?
Open the table, click Ask Tabella AI and name the column and the type.
- Open the table. Go to wpDataTables → wpDataTables and click the table title.
- Ask Tabella AI. Click Ask Tabella AI and type, for example: Change the Kick-off column type to DateTime.
- Check and save. Tabella AI lists what it changed. Click Save Changes, or Undo table changes to go back.
How do I make a column a DateTime column in the column settings?
Set the column type to DateTime in the Data tab of the column settings and save the table.
- Open the column settings. Go to wpDataTables → wpDataTables, open the table and click the settings icon in the column header.
- Change the type. In the Data tab, set Column type to DateTime. A DateTime column has no other settings in this tab.
- Save the table. Click Save Changes.
The format combines Date format and Time format from wpDataTables → Settings → Main settings, so all date and time columns on your site look the same.
How does a DateTime column show, sort and filter values?
A DateTime column turns each value into a date and time:
| What | How it works |
|---|---|
| Display | The date and time in the formats from the main settings |
| Sorting | By date and time |
| Filter types | DateTime range |
Why do DateTime values show wrong?
Usually because wpDataTables can’t tell how the dates in your source are written, for example whether 03/04 is March 4 or April 3. The column settings have no separate input format, so write the values in one clear format in your source, for example year first (2026-04-03 14:30), as described in How to use Date columns. This matters most for CSV, JSON, XML, Google Sheets and Excel sources with dates stored as text.
What should I remember about DateTime columns?
Use DateTime for values with a date and a time. The format comes from Date format and Time format in the main settings, visitors filter with a DateTime range, and values in one clear format, such as year first, avoid wrong dates. Keep Excel dates as text and cast MySQL timestamps to datetime.
Where can I read more?
These pages cover date and time columns: