I have a date string in "yymmdd" format i want to convert it into date object in JS the input string is "161208" I have tried code below
var mydate = new Date(InputDate);
but it says invalid date. Here is the fiddle https://jsfiddle.net/4ry0hL4t/
the basic need is that, I have a date string in "yymmdd" format and i have to convert it to different date formats like ("yyyy/mm/dd, yy-mm-dd","yy/mm").