There is no specific rule that requires you to publish an obituary right away. In most cases, people aim to publish an obituary 1-2 weeks following the passing of a loved one. However, publishing it months or even a year after a loved one's death is completely okay.