Supposing I have this:

```
var date = '2017-06-02';

```

How can I get:

```
var date = '2017,5,2';

```

---

So, I need to :

* replace the `-` by `,`
* remove the leading zero if applied for the first and second parameter.
* remove 1 for the second value

Thanks so much.