$order->get_date_paid(); //付款日期
$order->get_date_completed();//完成日期
//回傳的物件為 WC_DateTime (繼承 PHP DateTime)
$thedate = new WC_DateTime();
$thedate->date('Y/m/d');
參考資料:
https://woocommerce.github.io/code-reference/classes/WC-DateTime.html
$order->get_date_paid(); //付款日期
$order->get_date_completed();//完成日期
//回傳的物件為 WC_DateTime (繼承 PHP DateTime)
$thedate = new WC_DateTime();
$thedate->date('Y/m/d');
參考資料:
https://woocommerce.github.io/code-reference/classes/WC-DateTime.html