I am able to get order details by Order ID, but it's giving on
Is there anyway to get order complete time?
As per I know by default in
Magento does not provide the order completed time.
created_time change only once during order creation and
updated_timechange on every order action (i.e shipment, Invoice, order status change etc) so you can not predict the exact time for order complete.
But you can create one custom attribute to order level as
completed_time and you can update this value by using plugin. In this plugin you can get the order state. Just compare the order state, If it is
complete then update your custom variable.
For the plugin you can read answer from this link