on 08-17-2007 3:02 PM
Hi All,
We are developing WebDynpro Application successfully....but the date format was not displayed correctly.
the RFC Date format is : 05/23/2007
but in webdynpro we are getting date is wrong....we are getting date is : 09/05/2008.
the below one is our coding for date display format.....
public java.lang.String DisplayingDateFormat( java.lang.String date )
{
//@@begin DisplayingDateFormat()
// Current date Format in BW
SimpleDateFormat sdf = new SimpleDateFormat("MM.dd.yyyy");
String ChangedDateFormat=null;
try{
//Parsing String to Date
Date sqlDate =sdf.parse(date);
Locale userLocale=WDClientUser.getCurrentUser().getLocale();
DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.DEFAULT, userLocale);
//Converting Date to String
String newDateString = dateFormat.format(sqlDate);
ChangedDateFormat=newDateString;
}
I mention my user country is Germany.
can u tell me any one why we are getting wrong date.....
Really i appreciate.
Thanks and Regards,
Abhiram.
Too bad you can not offer yourself points. LOL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
solved by myself
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
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.