How do you get the Stardew Valley Magic cowboy hat?

How do you get the Stardew Valley Magic cowboy hat? The Magic Cowboy Hat is a hat sold by the Desert Trader on odd numbered calendar days in exchange for 333 Omni Geodes.

The Magic Cowboy Hat is a hat sold by the Desert Trader on odd numbered calendar days in exchange for 333 Omni Geodes.