The difference between : 日 vs 号
You are correct, 日 is more formal than 号。
When chatting with someone, you would normally use 号 instead of 日，in this case, saying 日 feels a little bit weird.
But when you are writing a document, you would want to use 日 unless you are writing a transcript of people chatting with each other.