Date.format() no signature of method

You need to ensure you import the necessary resource file: How to add days & years to current date