Example:
use Google\Cloud\ServiceBuilder;
$cloud = new ServiceBuilder();
$bigQuery = $cloud->bigQuery();
$date = $bigQuery->date(new \DateTime('1995-02-04'));
public function testStringFormatting() { $value = new \DateTime(); $date = new Date($value); $expected = $value->format('Y-m-d'); $this->assertEquals($expected, (string) $date); $this->assertEquals($expected, $date->formatAsString()); }