Streaming live at 10am (PST)

Display Current Year


#1

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


#2

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


#3

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


#4