Our Biggest Sale Is Here
Up to 70% Off
Get the Deal

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.

  1. Open the table. Go to wpDataTables → wpDataTables and click the table title.
  2. Ask Tabella AI. Click Ask Tabella AI and type, for example: Change the Kick-off column type to DateTime.
  3. 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.

  1. Open the column settings. Go to wpDataTables → wpDataTables, open the table and click the settings icon in the column header.
  2. Change the type. In the Data tab, set Column type to DateTime. A DateTime column has no other settings in this tab.
  3. 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.

  • In Excel files, format DateTime columns as plain text, because the library that reads Excel files doesn’t understand all Excel date formats.
  • In MySQL tables, cast timestamp columns to datetime.
  • The main search box above the table doesn’t search DateTime columns.

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.

Wait, Before You Download!

To get your hands on wpDataTables Lite, please enter your email address below. We’ll send you a direct download link and keep you updated on existing features along with helpful tips and tricks!

By continuing, I accept Privacy Policy and T&C
Mail Box