on 11-04-2009 1:00 PM
Hi Experts,
Right now the date is displaying in the format yyyy-mm-dd so my requirement is that the date format should be displayed in mm-dd-yyyy.So please suggest me in doing this like can we write a peace of code in webdynpro java or else need to change any thing to get the date in desired format.
Thanks in advance.
Harish.K.
Edited by: kommeraharish on Nov 5, 2009 6:14 AM
Hi Harish,
You can write the peice of code mentioned above, but if you have more than one dates to format, always create a simple type of Built-In type Date with Representation as mm-dd-yyyy
Using Simple Types is a good practice.
Hope this helps you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Already lots of thread discuss about Date format.
try this
String DATE_FORMAT = "mm-dd-yyyy";
SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
String fromDate=sdf.format(wdContext.currentContextElement().get<Your Date Attribute>());
Regards,
Manivannan.P
Edited by: manivannan palanisamy on Nov 5, 2009 6:58 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.