Re: Avaya CMS VB Scripting
would be nice to see an example how you see avaya information file or otherwise - Its just that anumber of people have been talking about these recently.
Just thinking out loud
Re: Avaya CMS VB Scripting
Code:
Dim currentDate = Date
Dim lastMonth = DateAdd("m", -1, currentDate)
Dim firstLastMonth = DateSerial(Year(lastMonth), Month(lastMonth), 1)
Dim endLastMonth = DateAdd("d", -1, DateAdd("m", 1, firstLastMonth))
This:
1 - gets the current date
2 - subtracts one month from the current date
3 - gets the first of the previous month
4 - adds a month to step 3 (which ends up being the first of this month) then subtracts one day (to get the end of the previous month)
-tg