Rynald0s
(@rynald0s)
Automattic Happiness Engineer
Hi @bambootb!
You can try the following code:
add_filter( 'woocommerce_admin_order_date_format', 'custom_post_date_column_time' );
function custom_post_date_column_time( $format ) {
return __( 'Y-m-d H:i:s A', 'woocommerce' );
}
Feel free to change it to suit your preferred output.
You can learn more about adding code to your site the correct way here:
http://rynaldo.com/how-to-add-custom-code-to-your-woocommerce-wordpress-site-the-right-way/
Cheers!
Thread Starter
Uhtred
(@bambootb)
@rynald0s Thanks for the reply.
I’ve tested the code and this is a result: 2020-05-31 19:09:24 PM
However, I was wondering is there a way to make the month show as Jan/Feb, etc. Instead of the number.
Please let me know.
Best.
T
Rynald0s
(@rynald0s)
Automattic Happiness Engineer
Hi @bambootb!
Yes, you can use this:
add_filter( 'woocommerce_admin_order_date_format', 'custom_post_date_column_time' );
function custom_post_date_column_time( $format ) {
return __( 'j-F-Y', 'woocommerce' );
}
You can also see here for further tweaks:
Formatting Date and Time
Cheers!
Thread Starter
Uhtred
(@bambootb)
Thank you so much for the tips, that’s all I need 🙂
Best,
T