If currentDate.Day <= 15 Then
’ Get the last day of the previous month
resultDate = currentDate.AddDays(-currentDate.Day)
Else
’ Keep the current date
resultDate = currentDate
End If
1 Like
If currentDate.Day <= 15 Then
’ Get the last day of the previous month
resultDate = currentDate.AddDays(-currentDate.Day)
Else
’ Keep the current date
resultDate = currentDate
End If