Tec(h)tonic

Insights into building a solid I.T. foundation in the mid-size business world.

Split a string into an array based on a character

var foo = "09/22/2011";
var arr = foo.split("/");
document.write(arr[0]+"<br>")
document.write(arr[1]+"<br>")document.write(arr[2])


Leave a Reply

Your email address will not be published. Required fields are marked *