Getting the current year

Is there a function to get the current year, sort of like the Date() function? Or will I have to code it myself?

Comments

  • : Is there a function to get the current year, sort of like the Date() function? Or will I have to code it myself?
    :
    An easy one. Use the Year function. Try something like this.

    MyLabel.Caption = Year(Date)

    This will take the year part of the Date function. Works OK.

    John :-)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion