The anesthesiologist will ask you to eat nothing for at least 6 hours before the operation.
They may allow you to have some clear liquids (water, apple juice, coke) up until two hours before surgery. Always check with your anesthesiologist for their preference. I suggest to my patients that they have light meals with plenty of liquids the day before surgery. Good luck with your operation.