Welcome Sony!
It varies hugely between surgeons. Some people have 6 weeks, some 4, 2 or none at all. If you've seen your surgeon and he/she's scheduled you in for the surgery, then he/she must be ok with you meeting with the dietician then. Call your surgeon's rooms if you're worried.