How to get date field object value? datetime object is 

[start_time] =&gt; Array
                (
                    [0] =&gt; Array
                        (
                            [value] =&gt; Drupal\Core\Datetime\DrupalDateTime Object
                                (
                                    [formatTranslationCache:protected] =&gt; 
                                    [inputTimeRaw:protected] =&gt; 
                                    [inputTimeAdjusted:protected] =&gt; 
                                    [inputTimeZoneRaw:protected] =&gt; 
                                    [inputTimeZoneAdjusted:protected] =&gt; 
                                    [inputFormatRaw:protected] =&gt; 
                                    [inputFormatAdjusted:protected] =&gt; 
                                    [langcode:protected] =&gt; en
                                    [errors:protected] =&gt; Array
                                        (
                                        )

                                    [dateTimeObject:protected] =&gt; DateTime Object
                                        (
                                            [date] =&gt; 2017-03-17 02:04:03.000000
                                            [timezone_type] =&gt; 3
                                            [timezone] =&gt; UTC
                                        )

                                    [stringTranslation:protected] =&gt; 
                                )


How to get [date] => 2017-03-17 02:04:03.000000 ??????

I have tried using print_r($ruleContentNew[0]['start_time'][0]['value']-&gt;getValue());die;
But it is giving me error.
Try
  
  $node->get('start_time')->getValue();


This actually gives you an array, if you inspect/dump the array, then you'll see that you can get the value like this.

$node-&gt;get('start_time')-&gt;getValue()[0]['value'];

Alternatively, you can simply use $node-&gt;start_time-&gt;value;

Note: I am using the default Date field from Core and assuming you're using a Node. Hence the $node, and also worth noting, usually your date machine name will be field_something. Which makes me believe that OPer is using some contrib or custom module.

If you're using some contrib module that allows you to have start and end times on your date field, probably will require a diff solution.