I have a string of format YYMMDDHHMMSS. How to create a js date object from this pattern? Is there any built in method for this? Or I have to create split the string into array of string (each of length 2 characters) then used in new Data object?
Share
Simplest to just parse out each date part and pass them in the correct order to the Date constructor;
(Assumes this century)