Ok, for the field you are entering the date in – is the object name “beginDate”, or is it DateOne as it appears? If the name of the object is DateOne, change the var line to:var DateOne = Date2Num($,"YYYY-MM-DD")Or rename the object to beginDate – either way should work.