Not able to display the date formate while passing through java

Posted on 2010-01-07
Last Modified: 2013-11-23
I am passing date string to excel. my date string formate is  (MMM dd,yyy) i.e NOV 11, 2009
i want to display the date  in excel in the same formate as it is being sent. But in the excel i am getting date in different formate  i.e 11-Nov-09.
i am using response.setContentType("application/"); to convert the data from java to excel.
Can anybody help me
Question by:kbb1
    LVL 29

    Expert Comment

    I would say pass it as either text or run some code to apply the format after the data is transferred.

    LVL 40

    Accepted Solution

    @kbb1: which package are you using for creating the excel sheet through Java.
    If it is Apache POI then you can set a specific date format by using

    Please go through this documentation


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
    This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now