The attached calculates dates for next six days starting Monday. It forces the start day to be a Monday also.
// form1.page1.mon::exit - (FormCalc, client)
var dayNum = Date2Num($.formattedValue,"MM/DD/YYYY")
form1.page1.dayOfWeek.execCalculate()
if (dayOfWeek.rawValue == "Mon") then
tues.rawValue = Num2Date(dayNum+1,"MM/DD/YYYY")
wed.rawValue = Num2Date(dayNum+2,"MM/DD/YYYY")
thurs.rawValue = Num2Date(dayNum+3,"MM/DD/YYYY")
fri.rawValue = Num2Date(dayNum+4,"MM/DD/YYYY")
sat.rawValue = Num2Date(dayNum+5,"MM/DD/YYYY")
sun.rawValue = Num2Date(dayNum+6,"MM/DD/YYYY")
else
xfa.host.messageBox("The selected date is not a Monday.")
tues.rawValue = null
wed.rawValue = null
thurs.rawValue = null
fri.rawValue = null
sat.rawValue = null
sun.rawValue = null
endif
Steve