Streaming live at 10am (PST)

Display Current Year

Does anyone know how to display the current year in the copyright, using Javascript on Webflow?

1 Like

Hi,
try add a html embed and use this code: <script>document.write(new Date().getFullYear())</script>

2 Likes

Thanks again to @perkristian for the great answer. I would make one small addition, add a semi-colon to the end of the document.write function:

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

Cheers, ve

1 Like