```
use DateTime;
```

in the header and then 

```php
$date = new \DateTime(); 
```