Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    magento-hyperlocal-marketplace-guide

    Save and Get Date Time According To Time Zone In Magento2

    Here we will learn how to Save and Get Date Time According To Time Zone In Magento2

    1# For get Date Time according Time Zone in magento2

    2# Save Date Time in magento2

    There are two type of time zone one is Default Time zone and another is Config Timezone

    when we save any date in database system spect datetime is in default timezone but actually that datetime is in current time zone of user so before save we’ll convert datetime in dafault timezone of system.


    using this process you can save/get datetime in database according to timezone
    Thanks 🙂

    . . .

    Comments (2)

    Add Your Comment

  • Raj
    Can you please add the date of the article published the article and the Magento version for which your code is compatible. It’ll more helpful.
    • Suraj Kumar
      Hello Raj, the published date of the blog is available at the beginning of the blog. Further, this code is applicable to Magento 2.0.x. We have forwarded the request to add the same in the blog as well. Thanks
  • Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close