How about this for a wacky way to do this:
var date = new Date(myStr.replace(
/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/,
'$4:$5:$6 $2/$3/$1'
));
Zero external libraries, one line of code; -)
Explanation of the original method:
var date = Date.apply(
null,
myStr.match(/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/).slice(1)
);
match() ( , slice() d, ) , , , , , . Date. Function.apply - , Date.apply(<that array>).
:
var foo = function(a, b, c) { };
foo('A', 'B', 'C')
var arr = ['A', 'B', 'C'];
foo.apply(null, arr);
, , javascript . , , , . , .
.