Hi all,
I have a problem with the date in javascript.I have a date which is in string format Like this: 10/5/2012 6:00 PM and what i need to do is at 5:00 PM on date 10/5/2012, i need to add a class to the td.

<table width="100%" border="0" id="datetime">
  <tr>
    <td>Dates</td>
  </tr>
  <tr>
    <td>10/9/2012 6:00 PM</td>
  </tr>
  <tr>
    <td>10/9/2012 7:00 PM</td>
  </tr>
  <tr>
    <td>10/10/2012 8:00 PM</td>
  </tr>
  <tr>
    <td>10/15/2012 8:00 PM</td>
  </tr>
</table>

So, your question is not 100% clear, at least not to me. You are showing a table in your example with date/time data in your table cells. You mentioned that you want to show these values in a different format?

What do you mean? Where do you apply javascript to this table?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.