on 02-29-2008 5:59 AM
Hi,
I have a Date Picker in my view and its default date format is mm/dd/yyyy. I want to change its format to dd/mm/yyyy. Any way to change its format?
Rewards waiting for the right ans.
vinod.
Hi
1)Create a simpletype of type date and there go to the representation tab and u can give
the format=dd/MM/yyyy
2)Then create a context attr of type as simple type and attch this to the value property of the inputfield
Regards
Hazrath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi vinod,
I have tried with tis and i have succeed.
Try it must work.
1)Create a simpletype of type date and there go to the representation tab and u can give
the format=dd/MM/yyyy
2)Then create a context attr of type as simple type and attch this to the value property of the inputfield
Regards
Hazrath
Hi
goto controlpanel ->regional and language settings
chage language to English UK.
log off n login again ill change date formatto dd/mm/yyyy
Thanks,
Sunitha Hari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Make use of the following code
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("Your Date attribute");
attributeInfo.getDataAttribute().getScalarType().format("dd/MM/yyyy");
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Liam,
In this work, i am not at all using any RFC; Its just a InputField UI element with its type as date. Now all i want is to change is default date format from MM/dd/yyyy to dd/MM/yyyy. I am able to change its format using SimpleDateFormat() for the first time; But once you select another date from the Date picker, the format again comes back as MM/dd/yyyy.
I need a solution for this.
Thanks,
- Vinod.
Hi,
Use the following:
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy ");
String dateReturn = dateFormat.format(<Your Date>) ;
Hope this helps.
thanks & regards,
Hazrath.G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.