Divorce impacts every aspect of your life. While you might want to focus primarily on how it affects your social and personal life, you also have to think about your professional life. Ideally, you will be able to take steps so that your career continues on as smoothly as possible through the legal process to end your marriage.
If you aren't self-employed, let your boss know what's going on. This gives them a heads up about what you will need in the upcoming months. You don't have to go into the details about the divorce, but you should share the basic details like upcoming court dates.
Discuss the situation with human resources. You will likely need to change some items in your personnel file. Make sure you aren't making changes that you haven't discussed with your ex. For example, don't take anyone off your health insurance policy unless you've found out if that's advisable. You might need to change direct deposits into your own account and change the beneficiary on life insurance policies.
Think about what you need to do before you take time off. Your colleagues might be willing to do a bit extra on those days but try to make it as easy for them as you can. You may decide to let trusted co-workers know about the split, so they understand why you suddenly have to miss days.
Finally, set a plan for you to enjoy success. Now is a time when you can find a balance between your home and work life again. This shift might be challenging but you can use this time to better yourself in ways that might not have been possible during your marriage.