i need to convert strings to date format. the requirement is if current month is selected, the date should be getdate. if any other month is selected then it should be first of
I think the following should do the job for you:
Dim theDate As DateTime = DateTime.ParseExact(input, "MMMM yyyy", CultureInfo.InvariantCulture)
The InvariantCulture makes sure that the month names can be parsed correctly.
InvariantCulture