on 02-14-2008 1:32 PM
Hi All,
I am using a context of type date to a input field in my webdynpro application. I want the calender to point to the first day of the month by default and not the current date.
and i want the date to be displayed in yyyy.mm.dd format...
Please suggest..
Regards,
Prasanthi o.
Hi,
"I want the calender to point to the first day of the month by default"
use the following code to acheive this.
GregorianCalendar gregCalendar = new GregorianCalendar
( Calendar.getInstance().YEAR, Calendar.getInstance().MONTH, 1 );
Date date = new Date(gregCalendar.getTimeInMillis());
//Lets say your context attribute which is mapped to the inputfield is date
wdContext.currentContextElement().setDate(date);
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,
I think changing the default date is not possible.
Regards,
Sudhir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.