Results 1 to 2 of 2

Thread: help required

  1. #1
    Join Date
    Oct 2004

    help required

    my problem is with the dates values, when i fetched from database..it does not shows in dd-MMM-yy format.i.e 26-jan-04.

    actually i inserted date values in the database using below query..its working..

    String pattern = "dd/MM/yyyy";

    SimpleDateFormat sdf = new SimpleDateFormat(pattern);

    java.util.Date dt = sdf.parse(request.getParameter("pay_date"));
    pstmt.setDate(1 new java.sql.Date(dt.getTime()));

    and when i fetched the values from database using below query:

    <input value="<%= rs.getDate("pay_date") %>" name="pay_date">

    it does not display date in dd-MMM-yy format.and display in some other format.

    plz make me possibel to work out this prob..and provide me the query for that..

  2. #2
    Join Date
    Dec 2002
    Calgary, Canada
    I pointed you in right direction in your previous thread....why you had to waste forum resources and post a new thread on the same issue?


    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center