I just tell you something about their use in DATE。We usually say今天几号?to ask people "what date is it today?"and we will answer "X月X日" or "X号"."日" is more officialer than 号.And they also have other meanings.My English is poor and i can not help you more.So sorry.You could buy a dictionary to solve problem like this.