Baby sleep schedule tips?

Right now my baby has colic and is up all night for 6 hours straight no matter what I try, then she passes out between 6am and 9am and will sleep for 6 hours. I am exhausted so I usually sleep with her. Eventually I want her sleeping at night, Ideally anytime between 10pm and 2am. How do I switch her sleep schedule? It feels wrong to keep a baby up all day when she hasn't slept and was crying all night