Hi, I don't think we use hyphens to shorten years. A hyphen is a horizontal punctuation mark and looks like - . What I would do would be to use an apostrophe as you did in your example.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.