Navigation:  Macros > Macro Language > Built-in Functions > All Functions (Alphabetical) >


Previous pageReturn to chapter overviewNext page

int = FirstDateOfMonth(nYear,nMonth)


This macro function takes in 2 numbers (year and month) and returns the date for the first of the month on that year.


nNewYearsDay = FirstDateOfMonth(2000, 1)


Make sure the first parameter that you pass is the year, and that the second is the month number from 1-12. Passing a month number outside of that range will generate a run-time error during script generation.

Topic 105068 updated on 03-Jan-2002.
Topic URL: