This is a noob question:
How to parse a date in format \"YYYYmmdd\" without external libraries ? If the input string is not in this format I would like
\"YYYYmmdd\"
simplistic answer maybe, without checks, but fast...
var date = parseInt(date); new Date(date / 10000, date % 10000 / 100, date % 100);
or, if months are not zero based in the source,
new Date(date / 10000, (date % 10000 / 100) - 1, date % 100);