I have an array that loops through my resultset and displays information. Here is my code:
for (int i = 1; i <=colCount; ++i)
out.println("<td>" + rs.getString(i) + "</td>");
Now the problem is sometimes I display a date vice just text (or string). How can I modify the above so if a date is found it will display the date as mm/dd/yyyy but not affect how the text is displayed?