For those who need a fix this is how i solved it.
//These are the values i got from the calendar
$cmb_date_start = '2016-07-01';
$cmb_date_end = '2016-07-30';
$args = array(
'posts_per_page' => -1,
'post_type' => 'product',
'meta_query' => array(
'relation' => 'AND', // This is default, you could skip it
array(
'key' => '_test_text_date_timestamp',
'compare' => '<=',
'value' => strtotime($cmb_date_end),
),
array(
'key' => '_test_text_date_timestamp',
'compare' => '>=', // Same as above
'value' => strtotime($cmb_date_start),
),
),
);
Add the custom args above to just before this line
$the_query = new WP_Query( $args );
Then i changed the following to stop it pulling from the actual post date
$post_date = substr($post->post_date, 0, 10);
$post_timestamp = strtotime($post->post_date);
to this
$post_date = get_post_meta( $post->ID, '_test_text_date_timestamp', true );
$post_timestamp = date("Y-m-d", strtotime($post_date));
And lastly i changed this
$item = array ("title" => $title, "color" => $color, "start" => date('Y-m-d\TH:i:s', $post_date), "end" => date('Y-m-d\TH:i:s', $post_date), "url" => get_permalink($post->ID), 'post_id' => $post->ID );
to this
$item = array ("title" => $title, "color" => $color, "start" => date('Y-m-d\TH:i:s, $post_date), "end" => date('Y-m-d\TH:i:s, $post_date), "url" => get_permalink($post->ID), 'post_id' => $post->ID );
Hope this helps anyone looking ??