add date parameter to date function

Make it possible to add a date string to the `date` function. Add Tests.

```yml
date('Ymd', '+10 days')
```