I'm attempting to learn JS, and I'm running into an issue with parsing a Date into a usable format.
I have a date in this format.
Sat Apr 09 2016 19:23:29 GMT-0500 (Central Daylight Time)
I've tried using SimpleDateFormat parse, like this:
SimpleDateFormat sdf = new SimpleDateFormat("E M d yyyy HHmmSS z");
Date date = sdf.parse("Sat Apr 09 2016 19:23:29 GMT-0500 (Central Daylight Time)");
What would be the best way to parse this? Or do I need to create a function that will go through each "index" of the string and parse it manually?