The Bible twice presents information using this principle:
Because the early Israelites spied out the land for 40 days and then refused to conquer it, they were to wander for 40 years in the wilderness
God told the prophet Ezekiel to lie on his side for numbers of days to indicate how many years the Jews would bear the results of their iniquity (or sinfulness)
There are some prophecies where days are used to indicate numbers of years. The 70 weeks prophecy in Daniel 9 is one example.