Forgot that one:
```javascript
grp.date = date ? date : i;
```
is more concise.