You are strictly not allowed to eat or drink at least 6 hours prior to the surgery. This aims to ensure emptying your stomach preventing you from the aspiration during anesthesia.