java - faced with date parsing problem in jexcel api -


i have created file named tablenew.xls has date following code:

         dateformat formatter = new simpledateformat("yyyy-mm-dd");           date date = (date)formatter.parse(st[length]);            datecell=new datetime(tokennumber,linenumber,date);            sheet.addcell(datecell); 

i getting output in file "04-03-11" "dd-mm-yy". when same date written file named tabletemp.xls same code , output -689881.5. dilemma program however, seems understand negative value date. should modify code? if so, should do? in advance

problem solved. anyways. always, date "04-03-11" displayed "dd-mm-yy" , treated excel "mm/dd/yy" . jexcel should problem. date parsing big pain.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -