1. Home
  2. Knowledge Base
  3. WooCommerce Product Table
  4. Product Table Features
  5. Product table date options

Product table date options

Date format

The date_format option lets you control how the date column is formatted in your product table. It is also used for any other column you have specified as a date (see below).

If you don’t set this option, the default format in your WordPress settings will be used (see ‘Date Format’ under Settings > General in WordPress).

You can set the date format to any valid date/time format string. For example: F j, Y will format the dates in this format: “August 24, 2016”. See the WordPress Codex for more information.

Example: [product_table columns="name,date,price" date_format="F j, Y"]

Extra date columns

The date_columns option lets you designate other columns in your table as dates, so that the column can be sorted by date correctly. This can be useful for custom fields or taxonomies which contain dates.


 [product_table columns="name,cf:custom_date,add-to-cart" date_columns="cf:custom_date" date_format="d-m-y"]

Was this article helpful?

Related Articles