int = EncodeDate(nYear,nMonth,nDay)
nManOnTheMoon = EncodeDate(1969,7,21)
nBirthdayThisYear = EncodeDate(YearOf(Today()), nBirthMonth, nBirthDay)
nFirstDayCentury = EncodeDate(100*(nYear div 100), 1,1)
You will usually use dates obtained directly from other functions or system variables in your code, so you will rarely need to use this function, unless you want to create a specific date. Even then, there are much more specialized date building functions (see below) which you should be familiar with before deciding you need to use the EncodeDate function. This may save you the effort of re-inventing the wheel.