Date conversion in the right format

I have the dates in following format:
06 Jul 2024
How can I convert them in dd.mm.yyyy format.
Thank you.

Hi @parnalmahavir.patni

formattedDate = DateTime.ParseExact("06 Jul 2024", "dd MMM yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString("dd.MM.yyyy")

Regards,

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