Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: ltollesonCan you please post the error you are getting.
My guess is that the column 'LOA START DATE' is of type string instead of date. In that case you will need to use the date() function to convert the string into a date type before applying the dateAdjust(-1) function.
Example...
If the 'LOA START DATE' field contains a string that looks like "04/21/2014" then you would use the following code to convert and emit the output.
LastDayWork = 'LOA START DATE'.date("MM/DD/CCYY").dateAdjust(-1)
emit LastDayWork