I am creating this topic again because the last solution is not working.
I added the following code to convert:
Datetime.ParseExact(Split(timePostedSTR.tostring," “)(0).tostring+” “+Split(timePostedSTR.tostring,” “)(1).tostring+” "+now.tostring(“yyyy”),“MMMM dd yyyy”,system.globalization.cultureinfo.invariantculture)
However I am now getting this error:
I believe it is because of ‘yyyy’, while the input does not give a year.
So my question is how can I modify this so it works without the year as well?