It is a really hard thing to do, and I still find myself wandering off into the past or the future.
Eckhart Tolle's book, "A New Earth" lays a complete and total groundwork for living in the moment and for setting aside the ego. It's been really helpful to me.