Try the following:
Copyright @@ @DateTime.Now.Year
In a .razor page in an ASP.NET Core application, e.g. within the <div> </div>
of your footer, the following works too:
Copyright © @DateTime.Now.Year
Added the copyright sign too and the double @@ is not needed in a razor page; it gives an error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With