This code snippet converts the module date into a format that can be used with the DateAdd function and returns it to a different MAS 90 date field.
r = oSession.FormatDate(oSession.ModuleDate, tmpDate, "%M/%D/%Y") ' format today's date VB style
tmpDate = DateAdd("d", 90, tmpDate) ' add 90 days to today
tmpDate = oSession.GetFormattedDate(CStr(tmpDate)) ' put date back in MAS90 format
r = oBusObj.SetValue("ShipExpireDate$", tmpDate)
I forget to click send yesterday!
------------------------------
Dan Burleson
Software Consultant
Connex Software
Corvallis OR
541-224-6642
------------------------------