I am sending a date variable from a backend microservice in the format java.util.Date 2024-05-21T00:00:00 and this is then received by the bot in the following format Tue May 21 2024 00:00:00 GMT+0200 (Central European Summer Time)
how can I simplify this variable so the bot can read it as dd.MM.yyyy
I tried doing the following - DateTime.ParseExact(StartDate, "ddd MMM dd yyyy HH:mm:ss 'GMT'zzz", System.Globalization.CultureInfo.InvariantCulture).ToString("dd.MM.yyyy"))
and Iām getting the error String was not recognized as a valid DateTime.