I have date column in excel, but when I\'m reading in my java application I\'m getting value as number
Example
Excel Date
1/1/2013
Here is a minimal working example how to convert an Excel date to a Java date:
Date javaDate= DateUtil.getJavaDate((double) 41275.00);
System.out.println(new SimpleDateFormat("MM/dd/yyyy").format(javaDate));
which returns
01/01/2013
You also need to import the following packages:
java.text.SimpleDateFormat
java.util.Date