Block.timestamp to date in solidity

Hello, I am looking for most efficient way to convert block.timestamp to date in solidity.
Maybe I miss if anything like that exist in openzeppelin contracts. So far I found this
The date should be used for on-chain generated NFT. Year and month is sufficient.

1 Like