If you want to get the initial and last day of a month, I have a ClassMethod to you (version 2, fixed an error found by Eduard):
ClassMethod GetMonthPeriods(InitialYear As %Integer, EndYear As %Integer) As %Status
{
set sc = $$$OK
set result = []
For CurrentYear = InitialYear:1:EndYear {
For CurrentMonth = 1:1:12 {
set item = {}
If CurrentMonth < 10 {
Set CurrentMonthStr = "0"_CurrentMonth
} Else {
Set CurrentMonthStr = ""_CurrentMonth
}
Set item.

.png)
.png)
.png)
.png)
.png)