I need to store date in one variable and time in variable. Are there any methods to get date and time in solidity?


1 Answer 1


there is a datetime library you can find out more here https://github.com/pipermerriam/ethereum-datetime

  • Welcome to Ethereum! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
    – q9f
    Commented Nov 11, 2016 at 14:31

Not the answer you're looking for? Browse other questions tagged or ask your own question.