rather:
```javascript
return moment(id.slice(0,6), 'YYMMDD').format('YY-MM-DD');
```

Will raise an error if invalid.