Link to home
Start Free TrialLog in
Avatar of al4629740
al4629740Flag for United States of America

asked on

function for getting value of a month - vb6

In VB6 is there a function that returns the value of what month it is?

For example

January would equal 1 and February would equal 2, etc...
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Month() returns an integer value representing the month of a given date/time
So you can use Month(Now) to get the month of the current date.
Avatar of al4629740

ASKER

Month(January) returns 1?
ASKER CERTIFIED SOLUTION
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm glad I was able to help.

In my profile you'll find links to some articles I've written that may interest you.
Marty - MVP 2009 to 2014