Hi all,
i am trying to set start and end date in DateField. I think its not working as expected. When I run my code and open datepicker all dates can be choosen from datepicker, there is no limitation to the date area provided by startdate and enddate. Here´s my code (startDate and endDate are both java.util.Date).
DateItem item = new DateItem();
item.setTitle( "dateFrom" );
item.setTitleAlign( Alignment.LEFT );
item.setUseTextField( true );
item.setTextAlign( Alignment.LEFT );
item.setType( "date" );
item.setStartDate( startDate );
tem.setEndDate( endDate );
I´m using version 1.2
Does anybody know a solution for that?
Thanks Rainer
i am trying to set start and end date in DateField. I think its not working as expected. When I run my code and open datepicker all dates can be choosen from datepicker, there is no limitation to the date area provided by startdate and enddate. Here´s my code (startDate and endDate are both java.util.Date).
DateItem item = new DateItem();
item.setTitle( "dateFrom" );
item.setTitleAlign( Alignment.LEFT );
item.setUseTextField( true );
item.setTextAlign( Alignment.LEFT );
item.setType( "date" );
item.setStartDate( startDate );
tem.setEndDate( endDate );
I´m using version 1.2
Does anybody know a solution for that?
Thanks Rainer
Comment