i have a pdf form i am doing. it has a java script to make the week ending date populate other fields and minus a day.
if (WEEK_ENDING.rawValue == null)
{$.rawValue = "";}
else
{Num2Date(Date2Num(WEEK_ENDING.formattedValue, DateFmt(1)) - 0, DateFmt(1));}
endif
this works for the first date, but when i change it to
if (WEEK_ENDING.rawValue == null)
{$.rawValue = "";}
else
{Num2Date(Date2Num(WEEK_ENDING.formattedValue, DateFmt(1)) - 1, DateFmt(1));}
endif
it does not work. any idea what i am doing wrong?
Tina