I’ve got an array of values that i need to parse through and extract the values to a new array based off a certain character
eg value: 2012-04-19T19:21:07-08:00
I want to loop through an array populated w/ values like the above and extract everything from that value after the “T” from each position in the array and populate a new array with those results.
Can anyone point me in the right direction?
Thanks in advance.
Using
substr()andindexOf()string methods you can achieve. Ex: