I am trying to get a string with date/time on this format: "YYYY-MM-DD-HH-MM" I cannot find a proper way to do it?
This is what I have at the moment:
var x = new Date();
var TimeStamp = x.toString();
Outputs:
Tue Oct 30 2018 14:33:03 GMT+0000 (UTC)