Skip to main content
Inspiring
August 22, 2006
Question

Getting the year

  • August 22, 2006
  • 3 replies
  • 279 views
I am attempting to grab the current year from the server (Now()) and
returning only the year so I can set it to a variable.

I found Date.getYear(), but I heard bad cross browers issues
I found Date.getFullYear(), but don't know how to impliment it. I keep
getting that the method is not found.

Does anyone know a good way to return only the current year?

Thanks!


This topic has been closed for replies.

3 replies

Inspiring
August 22, 2006
Yeah, I thought of that right after I hit the send button. I have it done
and it works fine. Thanks.


Inspiring
August 22, 2006
Did you try using the year function? Details are in the cfml reference manual. If you don't have one, the internet does.
Inspiring
August 22, 2006
Nevermind