If you apply in person or electronically, you may know the application number and get the acceptance notice on the same day.
If it is mailed, it will take you about two weeks to receive the formal admission notice.
After the patent application number comes out, the patent office will not disclose your patent information immediately unless it passes the preliminary examination or authorization.
If you disclose the information yourself, because you have the application number and application date, as long as the patent application process is smooth, there will generally be no problem. The date of application is very important.
However, if the patent application is not smooth, leading to withdrawal or rejection, it will be more troublesome for people who know your patent information to grab the patent.