Hi,
I am designing an interactive form with a date/time field calendar. I need to disable the weekday date from calendar, so the user can pick the weekend dates only.
I'm currently using the following code on 'exit' event of the calendar to alert if user chose weekday.
Is there any other way to disable weekdays on 'initialize' event of date/time field?
form1.#subform[0].DateTimeField1::click - (FormCalc, client)
var weekday = Num2Date(Date2Num($, "YYYY-MM-DD"), "EEE");
if (weekday <> "Sat" or weekday <> "Sun" )then
$host.messageBox("Please enter a Sunday week ending date", "Invalid Date", 0, 0);
endif
Thanks,
Roya
Views
Replies
Total Likes