-
FEATURED COMPONENTS
First time here? Check out the FAQ!
hi , i have 2 datebox , i want that the date of datebox2 must be after the date of datebox1.(Datebox1 constraint after datebox2 )
Thanks in advance
This means no empty if date1 is empty everything is possible, if date1 isn't empty => the after is filled in also.
constraint="@load(c:cat('no empty',empty fx.date1?'':c:cat(', after ',vm.formatDate(fx.date1))))"
where the formatDate method :
public String formatDate(Date date) {
return new SimpleDateFormat("yyyyMMdd").format(date);
}
Asked: 2016-06-09 10:21:01 +0800
Seen: 19 times
Last updated: Jun 09 '16