Help with Javascript innerHtml please

I have a Javascript that is looping through a table's rows.  One of table cells (TD) contains a date.   Here's a sample:

<td class="ms-cellstyle ms-vb2"><span class="ms-noWrap" title="10/30/2015">10/30/2015</span></td>

Open in new window

I have a variable named "col_date" which needs contain just the date (10/30/2015).

var col_date = row.cells[suspense_date_column].innerHTML;

Open in new window

Right now col_date contains the whole  
<span class="ms-noWrap" title="10/30/2015">10/30/2015</span>

Open in new window

.  How can I return just the date without the span tag?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tom BeckCommented:
Maybe this:
var col_date = row.cells[suspense_date_column].getElementsByTagName('span')[0].innerHTML;

Open in new window

Russ SuterSenior Software DeveloperCommented:
use the innerText or textContent property rather than innerHTML.

Not all browsers support both innerText and textContent but all browsers should support at least one or the other.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rainer JeschorCommented:
+1 for Tom`s solution

Question: the HTML of the cell looks like a SharePoint generated table (at least the class names do :-))

Why dont you use jQuery?

Alternative solution:
var col_date = row.cells[suspense_date_column].getElementsByTagName('span')[0].getAttribute("title"); 

Open in new window

greddinAuthor Commented:
Thanks, both solutions are perfect. Appreciate the help!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.