Hi All,
I am trying to parse dates written in long-word format, i.e. “Tuesday 3rd December 2019” to a DateTime
Has anyone dealt with this? Any suggestions appreciated!
Hi All,
I am trying to parse dates written in long-word format, i.e. “Tuesday 3rd December 2019” to a DateTime
Has anyone dealt with this? Any suggestions appreciated!
@James_Smith Try like below.
Str= “Tuesday 3rd December 2019”
DateTime.ParseExact(str.Replace("st","").Replace("rd","").Replace("th",""),"dddd d MMMM yyyy",Nothing).ToString("dd/MM/yyyy")
Thank you both - that’s got it sorted!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.