Answered
I've been trying to figure out how to subtract 180 days from the Current Date and can't figure it out. No problems subtracting days from a user entered date in a subform:
var current = Date2Num(DelivDate.formattedValue, "MM/DD/YY")
var date1 = current-180
var date2 = current-365
var newDate1 = Num2Date(date1, "MM/DD/YY")
var newDate2 = Num2Date(date2, "MM/DD/YY")
F.P1.Subform1.TestDate1.rawValue = newDate1
F.P1.Subform1.TestDate2.rawValue = newDate2
This coding doesn't work when I substitute "CurrentDate" in place of "DelivDate". Can anyone tell me what I'm missing?
Thanks,
Matt
Does 'CurrentDate" have any value?
George Kaiser