Hello,
I have a string as 1012022 in my excel sheet and I want to convert this into date time format.
Date.ParseExact(RegRow(“DAY”).Tostring.Trim,“dMMyyyy”,System.Globalization.CultureInfo.InvariantCulture)
where Day=“1012022”
I had tried date parsing and convert.datetime methods but they didn’t worked.
Could any one please help me on this.
Thanks in advance.