Convert Date string to format yyyy-MM-dd : Hello I was wondering is it possible to transform this Date string: 

`Sat Aug 12 2000 00:00:00 GMT+0200 (Midden-Europese zomertijd)`

to the format of: 

    2000-12-08

I tried the following things:

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-js -->

    var DateInput = "Sat Aug 12 2000 00:00:00 GMT+0200 (Midden-Europese zomertijd)";
    var test = new Date(DateInput);
    console.log(test);

    var convert_date = test.toString().split('-');
    console.log(convert_date);

<!-- end snippet -->

But this does not work. Can anyone explain why and help me guiding to the right direction?