Click to See Complete Forum and Search --> : Date Formatting in ASP


apd8x
05-23-2003, 10:57 AM
I want to display the current year. I did
<%=FormatDateTime(Now(), 2)%> but that gave me
5/23/2003. How can I get it to say 2003 only.

Thanks.

tacallah
05-23-2003, 01:19 PM
Try Year(Now())).

Bullschmidt
05-25-2003, 09:05 PM
It's just semantics since they all work, but here is my favorite:

Year(Date())