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 https://ethereum.stackexchange.com/questions/57918/how-can-i-convert-between-a-solidity-timestamp-and-year-month-day-hourminutese.
The date should be used for on-chain generated NFT. Year and month is sufficient.
1 Like