Retrieve Booking Data – WooCommerce Bookings Plugin

How to retrieve specific booking data in Woocommerce Bookings plugin:

global $wpdb;

$booking_id = $wpdb->get_var( $wpdb->prepare( "SELECT post_id FROM {$wpdb->postmeta} WHERE meta_key = '_booking_order_item_id' AND meta_value = %d;", $item_id ) );

$wcBooking = new WC_Booking($booking_id);

$start = $wcBooking->get_start_date();
$end= $wcBooking->get_end_date();
$resource = $wcBooking->get_resource();
$option = $resource->post_title;

echo '<br/><small>From: '.$start.' </small>';
echo '<br/><small>To:  '.$end.' </small>';
echo '<br/><small>Option:  '.$option.' </small>';

Source