How to change the date separator from mm/dd/yyyy to mm.dd.yyyy and add 00:00 in the end?

Hi @Greggy

You can use DateTime.ParseExact(hostDateFrom.toString(), “MM/dd/yyyy”, Globalization.CultureInfo.InvariantCulture).ToString(“MM.dd.yyyy 00:00”) adding 00:00 will add a static time as you need and also I see you have the value back to hostDateFrom. If hostDateFrom is in Date format than it will fail as the output of right argument is string and you are trying to assign to Date

If you need date than add like this DateTime.ParseExact(DateTime.ParseExact(hostDateFrom.toString(), “MM/dd/yyyy”, Globalization.CultureInfo.InvariantCulture).ToString(“MM.dd.yyyy 00:00”)“MM.dd.yyyy hh:mm”, Globalization.CultureInfo.InvariantCulture)

cheers