Want to breastfeed but have to be away a few days after birth

sammy

So I have a scheduled C-section April 25 and have a court date April 30 that they will not budge on changing. I want to breastfeed baby but will have to leave him with my MIl for probably 4-5 hours for court that day. What should I do!!! Bringing baby is not an option