Upgrading to older OS after Yosemite

Hello: macbook with 8gigs memory. Yosemite. Can I upgrade to High Sierra directly or do I need to upgrade to El Capitan first? What date should I change the time in the macbook to be able to upgrade? It’s 5 years old, Thank you