Dim dt As Date = Date.ParseExact(simeYMD, "yyyy\/MM\/dd", CultureInfo.InvariantCulture) Dim dtFrom As New Date(dt.Year, dt.Month, 1) Dim dtTo As Date = dtFrom.AddMonths(1).AddDays(-1)