I am trying to convert a word date to a datetime.
My variable ‘scrapedDate’ is a string and it is '2nd January 2020’
My datetime variable is ‘newDate’ and its assigned to ‘Date.parseexact(scrapedDate,“dd/MMMM/yy”,system.globalization.cultureinfo.invariantculture)’.
It’s saying the string isn’t a valid date time. Whenever I used ‘02012020’ the conversion works ok so I know the problem is with the string.