The generated SQL for my Maintenance Plan is
EXECUTE master.dbo.xp_delete_file 0,N'''',N'''',N''2019-01-02T10:44:21''
but the execution returns error message
Msg 102, Level 15, State 1, Line 1 Incorrect syntax near '2019'.
It dislikes the date parameter! I think it is to do with the fact my server is in Australia not USA, and we view dates differently!
Any ideas how I overcome this bug?