Hi @najmulhasan,
We use the WordPress date format by default. You were seeing the order date in a different format whether because you were using a custom template (or maybe edited the core templates and then your changes were lost when updating?) or filtering the order date with a code snippet, that was deactivated.
Anyway, if you want to customize the date format for the order date, you can use this code snippet:
/**
* PDF Invoices & Packing Slips for WooCommerce:
* Customize the order date on the PDF documents
*/
add_filter( 'wpo_wcpdf_date_format', 'wpo_wcpdf_date_format', 10, 3 );
function wpo_wcpdf_date_format( $date_format, $document, $date_type ) {
if( $date_type == 'order_date' ){
$date_format="F j, Y H:i:s";
}
return $date_format;
}If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters
In brief, if you have a child theme, you can add code snippets in its functions.php file: don’t add code snippets to the functions.php file from your parent theme, because you may lose your customizations after updating your parent theme! The another way to add code snippets, that is safer in my humble opinion, is to use the Code Snippets plugin: This plugin stores the code snippets in your database, so you don’t have to worry about losing your customizations after updating your plugins or theme 😉
