Hand sanitizer expiration dates are based on when the solution drops below 90% of listed ingredients. Usually that's 2-3 years on the shelf.
Sanitizer mostly starts at 60% alcohol which is pretty much the minimum effective at killing anything.
It is, of course, better than nothing if you don't have anything else.
Recommendation is about 1 year once purchased once you break the seal (if still before expiration)
That said, if it's all you've got, it's still be
Norovirus, for instance, can't be killed with alcohol (it's capsid enclosed).