-
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);
sdf.setLenient(false);
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..
-
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?
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
Forum Rules
|
|
Bookmarks