var dateStr = "2002/07/03"; dateArray = dateStr.split("/"); Now: dateArray[0]="2002" dateArray[1]="07" dateArray[2]="03"