The language of your first stop
At a café in Ghent or a shop in Antwerp, Dutch is a sensible starting point. In Namur or Liège, French is the usual local choice. In the German-speaking area around Eupen, you can start with German. These are practical regional guidelines, not rules about the language of every individual. In Brussels especially, following the language used by the person you are speaking with is often easier than trying to guess their preference.
Two spellings you may hear in Flanders
The Flemish language advice service accepts both goedemorgen and goeiemorgen. The latter reflects a pronunciation that is widespread in everyday speech. Do not treat it as a different language or assume it is impolite simply because it sounds less formal to an English-speaking learner. The initial Dutch g may also sound softer than the sound you hear from speakers farther north. Either spelling is useful for recognising morning greetings in messages.
Reading the room around lunchtime
The choice between a morning greeting and an afternoon greeting can depend on the activity rather than a precise minute. A late-morning telephone call may still open with goedemorgen, while somebody already buying lunch might hear goedemiddag. Belgian Dutch usage tends to make that transition somewhat earlier than Dutch usage in the Netherlands. In a French-speaking setting the distinction is less pressing: bonjour remains a normal daytime greeting after the morning has ended.