How to setup a membership subscription that expires on a set date?

I am looking at setting up a membership subscription that expires at the end of the year no matter when they purchase, so if you they purchase in June, it expires at the end of December or if they purchased in August it would still expire in December. So instead of 365 days from purchase but 12-31-00?

Thanks!