Check if current date is within first to 15th of the current month

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