cancel
Showing results for 
Search instead for 
Did you mean: 

Date Picker in webdynpro

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

I think changing the default date is not possible.

Regards,

Sudhir