How many days or weeks are you diet controlled?

Im still new to this and im going to get referred to a dietitian but i was wondering how many days or weeks do u get diet controlled? Like if the diet is not working for your numbers i know they prescribe medications but how long does it take them to decide to put u on a medication?