Convert 09052022 to datetime (yyyy-mm-dd)

Hi ,

Please help me in converting date - 09052022 to 2022-05-09

Regards,
G

@gokul1904
Datetime.ParseExact(stDate,“ddMMyyyy”,System.Globalization.CultureInfo.InvariantCulture)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.