Definitely let them know immediately. You not being happy in your job (because of a better offer), or you quitting within first 3 months, is much worse than saying even a day in advance that you had other offer and this is how things are. Really tell them your position, there is nothing wrong with this.