Jump to content
Sign in to follow this  
gstroutz

DateMonthOfYear Function Problem

Recommended Posts

Using the code:

$mm = _DateMonthOfYear(10,1)

I get :

$mm = _DateMonthOfYear(10,1)

^ERROR

Error: Unknown function name.

Is this a bug? Or, am I simply functionally challenged? Does anyone have any insight as to what might be the problem?

Ultimately, I would like to execute

$mm = _DateMonthOfYear(@MON, 1)

to get the month.

Thank you in advance.

-G

Edited by gstroutz

Share this post


Link to post
Share on other sites

Do you have

#include <Date.au3>

at the top of your script?

No I did not... and putting that in seemed to make a world of difference!

Thanks.

:lmao:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...