Are you using dateMath anywhere else in the transform and would you be willing to post the full transform?
I tested the transform from above and do not receive any errors. I am curious if there is another issue in the transform that is causing this error to show.