Even better:

```php
$date = new DateTime( "$year-$month-01" );
```