WordPress at a glance
function is not described

WC_Order::get_date_paid() public WC 1.0

Get date paid.

{} It's a method of the class: WC_Order{}

Return

WC_DateTime|NULL. object if the date is set or null if there is no date.

Usage

$WC_Order = new WC_Order();
$WC_Order->get_date_paid( $context );
$context(string)
What the value is for. Valid values are view and edit.

Code of WC_Order::get_date_paid() WC 5.0.0

<?php
public function get_date_paid( $context = 'view' ) {
	$date_paid = $this->get_prop( 'date_paid', $context );

	if ( 'view' === $context && ! $date_paid && version_compare( $this->get_version( 'edit' ), '3.0', '<' ) && $this->has_status( apply_filters( 'woocommerce_payment_complete_order_status', $this->needs_processing() ? 'processing' : 'completed', $this->get_id(), $this ) ) ) {
		// In view context, return a date if missing.
		$date_paid = $this->get_date_created( 'edit' );
	}
	return $date_paid;
}