简体   繁体   中英

Set Current date as Max Date in Calendar Widget Kony Visualiser

I am developing an application with Kony Platform. I need to use a Calendar widget wherein I need to restrict selection of future dates. Is it possible? If yes, then how?

You need to set validEndDate properties as current date for the calendar widget. Please find the Same code

var mydate = new Date();
var currDate =[mydate.getDate(), mydate.getMonth() + 1, mydate.getFullYear()];
frmlanding.cal1.validEndDate  = currDate;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM