It may sound bizarre, but taking a warm bath or shower can help with stiff joints.
Before you go out on your hike, warm your joints up a bit. You will be shocked by what a little warmth can do for you. When you get on your hike, make sure to pace yourself.
When you are done with your hike, you can apply a cold compress to the knee. This will help with any resulting inflammation.