Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: HSSF cell date formatting in java

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HSSF cell date formatting in java

    Hi there,
    I have created an Excel sheet using HSSF POI.one column called "Customer delivery date" is there in the excel sheet where only date should be entered.If i enter date in this column as 12/13/11 then system should throw an error as we are excepting the date should be in dd/mm/yyyy. This is not happening because the date entered(12/13/11 ) in sheet is being validated by System date [System date format is mm/dd/yy]and while uploading the sheet ,the value to the java code is being passed as 13-Dec-2011 which is not expected.

    Could you suggest the solution how to get the exact value entered in the sheet?

    It would be a great help for me if you give any suggestions regarding this issue.

    Thanks in advance

    Rajesh


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: HSSF cell date formatting in java

    Hello masepogurajesh.

    Welcome to the Java Programming Forums.

    Can we see your code please? If possible attach an example excel sheet too.
    We would need to do some tests.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

Similar Threads

  1. How to start writing Java Apps for Cell Phones?
    By Jchang504 in forum Java ME (Mobile Edition)
    Replies: 7
    Last Post: January 10th, 2011, 05:11 AM
  2. Removing the middle cell
    By Shyamz1 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 7th, 2010, 01:35 PM
  3. DATE.java!
    By hiimjoey11 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 3rd, 2010, 05:37 PM
  4. Formatting output of a Double
    By CarlMartin10 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 11th, 2010, 04:20 PM
  5. Replies: 3
    Last Post: August 19th, 2009, 11:30 AM