on 02-14-2008 12:51 PM
Hi all,
In my application i have an input field which is bind with a context element of type 'date', and right now the date date format is mm/dd/yyyy. I need to convert the format to dd.mm.yyyy. How can i do that? I tried with the Calender class but it returns as type java.util.Date..
Expecting the right ans soon, and the ans will be rewarded.
Regards
Vinod V
Hi,
you told that you have tried calandar class and you got java.util.Date.So you convert it to java.sql.Date as
java.sql.Date sqlDate = new java.sql.Date(utlDate.getTime());
where utlDate is the java.util.date which you already have.
Regards,
Sudhir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
convert your resultant java.util.date to java.sq;.date as follows
java.sql.Date sqlDate = new java.sql.Date(utlDate.getTime());
utlDate is java.util.date
Regards,
Sudhir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try to change the user language to English (United Kingdom), close the browser and open the portal again.
Regards,
Omri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.