Title: Sorting dates
Last modified: October 1, 2020

---

# Sorting dates

 *  Resolved [Ivaylo Tinchev](https://wordpress.org/support/users/itinchev/)
 * (@itinchev)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/sorting-dates-2/)
 * Hi,
 * Thanks for your plugin. Keep up the good work!
 * I’m having an issue with the table sorting by a custom date column created by
   the Advanced Custom Fields plugin. The date is sorted only by the day of month
   but not by the whole date and time string. The date format is d.m.Y H:i and I
   am using a few aproaches with code to resolve the issue, as described in your
   site, but it persists.
 * Here is what the wrong result looks like:
    [https://prnt.sc/ur88w8](https://prnt.sc/ur88w8)
 * Here is the code I’ve unsuccessfuly used by now:
 *     ```
       add_filter('wc_product_table_custom_field_stored_date_format', function($format, $field) { 
           if ('coursedate' === $field) {
               return '"d.m.Y H:i"';
           }
           return ''; 
       }, 10, 2);
   
       add_filter( 'wc_product_table_custom_field_is_eu_au_date', function( $is_eu_date, $field ) {
           if ('coursedate' === $field) {
               return true;
           }
           return false;
       }, 10, 2 );
       ```
   
 * Both don’t work. Please advise.
 * Thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Saiful Islam](https://wordpress.org/support/users/codersaiful/)
 * (@codersaiful)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/sorting-dates-2/#post-13478955)
 * Are you using our Product table plugin for your project?
    I am not clear, what
   did you mean by this comment. Can you Explain more?
 * If you don’t want to explain here, you can make a ticket at [https://codeastrology.com/support](https://codeastrology.com/support)
   with more details.
 * Thanks a lot for your comment.
    Saiful
 *  Thread Starter [Ivaylo Tinchev](https://wordpress.org/support/users/itinchev/)
 * (@itinchev)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/sorting-dates-2/#post-13479010)
 * Yes, it’s your product.
 * Version 6.0.16 | By CodeAstrology
 * I will write to your support.
 * Thanks.
 *  Plugin Author [Saiful Islam](https://wordpress.org/support/users/codersaiful/)
 * (@codersaiful)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/sorting-dates-2/#post-13479011)
 * Thanks a lot for your comment. I am closing this topic from here. We will discuss
   over support.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Sorting dates’ is closed to new replies.

 * ![](https://ps.w.org/woo-product-table/assets/icon-256x256.png?rev=3522314)
 * [Product Table for WooCommerce](https://wordpress.org/plugins/woo-product-table/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-table/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-table/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-table/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-table/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-table/reviews/)

## Tags

 * [date](https://wordpress.org/support/topic-tag/date/)
 * [format](https://wordpress.org/support/topic-tag/format/)
 * [product](https://wordpress.org/support/topic-tag/product/)
 * [sort](https://wordpress.org/support/topic-tag/sort/)
 * [sorting](https://wordpress.org/support/topic-tag/sorting/)
 * [table](https://wordpress.org/support/topic-tag/table/)

 * 3 replies
 * 2 participants
 * Last reply from: [Saiful Islam](https://wordpress.org/support/users/codersaiful/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/sorting-dates-2/#post-13479011)
 * Status: resolved