Skip to main content
UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
  • Platform
  • Resources
  • Community
  • Pricing
Comment 'Hello @OneEagle !Y...' to 'How to get the current year in the body injection?'
Comment to How to get the current year in the body injection?
    •  ·  LeonidS
    •  ·  2025-02-09T10:02:35+0000

    Hello @OneEagle !

    You may use the Javsascript there:

    <script>

    new Date().getFullYear();
    

    </script>

      •  ·  OneEagle
      •  ·  In reply to
        LeonidS
      •  ·  2025-02-09T16:24:55+0000

      Hi dear @LeonidS

      Thank you for your help. I have tried the code but it didn't work. You forgot to add:

      document.write

      So I have added it like this and it worked:

      <script>document.write(new Date().getFullYear());</script>
      

      Thanks

        •  ·  LeonidS
        •  ·  In reply to
          OneEagle
        •  ·  2025-02-10T05:05:31+0000

        I guess, you already had the palce to insert this value :-) Anyway, it nice that it has been resolved.

      See more...
      • Features
      • Pricing
      • Forum
      • Blog
      • Market
      • About
      • Copyright
      • Contact
      • Terms
      • Privacy
      • 𝕏
      Search
      UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
    • Platform
      • Features
      • Core CMS
    • Resources
      • Documentation
      • Marketplace
      • Discussions
      • Support Groups
      • API Reference
      • UNA CMS on GitHub
      • Webinars
      • Blog
    • Community
      • Discussions
      • Groups
      • Webinars
    • Pricing
    • Are you sure?
      Please, enter a value here