Sorry, forgot about the java.util.Calendar class because I was assuming you
wanted to offer the user of the spreadsheet the ability to alter the
timezone and see what the time was there. This class allows you to set the
timezone explicitly so that you should get a date/time value adjusted
accordingly.

If you are not familair with this class, have a look at the static
getInstance() methods. They are overloaded to allow you to set the Timezone
and even the Locale.


noobguru wrote:
> 
> Hi,
> 
>     So I'm trying to call the Cell cell.setCellValue(java.util.Date)
> method. It puts the date in my excel file great, however it's showing the
> date as my default timezone of my system.  I don't want it to show that, I
> want it to show a date according to any time zone I want.  Is there a way
> to do this?
> 
> Thanks,
> noobguru
> 

-- 
View this message in context: 
http://www.nabble.com/Setting-Date-object-in-Excel-File-tp22251385p22252291.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to