For me I remind myself that worrying about the future doesn't help anything - it just ruins the now.
The past is a different story, I'm still learning how to accept that what has happened did happen while still moving forward...I'm not sure how to do that. Talking about it in therapy I think is helping me, but it's still a struggle.