on 10-12-2007 3:16 AM
Hi,
In my project i am picking the date from the date picker which is a javascript program . Then i am displaying it on a jsp page .It is coming in mm/dd/yyyy format .I have to change it to dd/mm/yyyy format .
I have the code for date formatting conversion .
What my doubt is whether the code should be written inside the jsp page or in the javascript .
Thanks .
Hi
<%@page language="java" import="java.sql.*,java.util.*,java.text.*" %>
<%SimpleDateFormat sdf= new SimpleDateFormat(dd/mm/yyyy );%>
<% java.util.Date temp_date = sdf.parse(PassYourDateHere); %>
use this with your jsp
Regards
Abhijith YS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
I would suggest you to write the jave code in jsp page using <% %> tags
Thanks& Regards
Harsimran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.