I have a date in the format yyyymmdd. Ex: 20141004
What I need to do is to convert it like dd-mmm-yyyy. Ex: 4 Oct 2014
There is a similar question here: JavaScript convert string into Date with format (dd mmm yyyy) i.e. 01 Jun 2012
The difference is that I have no "/" character to split by.
Another limitation is that I cannot use any external library, as this code is used inside another tool, so I need native JS.