when i set response content type is excel. In excel sheet it is dsiplaying 1-Jan instead-of 1-1. here is code snippet
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <% response.setContentType("application/vnd.ms-excel"); %> < table>< tr>< td>1-1< /td>< /tr>< /table>
Appending single quote "'" will work. is there any other solution to set cell format or correct text?