File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Convert String to Date Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Convert String to Date Issue" Watch "Convert String to Date Issue" New topic
Author

Convert String to Date Issue

Ragupathirajan Venkatesan
Ranch Hand

Joined: Aug 18, 2010
Posts: 62
Dear All,

I am trying to convert the string to date by using the below logic. My actual requiremt is to get the date which five days before than today. Please suggest. Thanks advance.

Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

use instead of


Life is easy because we write the source code.....
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

mm-represents minutes
MM-represents month
Ragupathirajan Venkatesan
Ranch Hand

Joined: Aug 18, 2010
Posts: 62
Thanks a lot Seetharaman. It works for me.
Ragupathirajan Venkatesan
Ranch Hand

Joined: Aug 18, 2010
Posts: 62
Hi Seetharaman,

I am trying to update the existing excel sheet using java. Means need to check the no of rows in the existing sheet, if it is 10 i need add the data into 11th row. Please suggest me any link or code to solve this problem. I can able to insert the any number of rows in one short but if i try to update the existing one.. i could not(no exception it is throwing at the same time no data getting added newly). Thanks in advance.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19725
    
  20

Have you already tried Apache POI or JExcelAPI (JXL)?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Ragupathirajan Venkatesan
Ranch Hand

Joined: Aug 18, 2010
Posts: 62
Hi

I have already tried in jxl, please post your comments in jxl or poi, may be my way of trying could be differed from you. Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Convert String to Date Issue