Why does the slash change to a dash when providing an explicit date format (screen below)?
Because the slash is a locale specific date separator. To insert a slash explicitly, you need to avoid it. See Documentation
Try
.ToString("dd'/'MM'/'yyyy")
Source: https://habr.com/ru/post/1346811/More articles:Creating a stream class in Python - pythonSpring 3 - Enable javascript via JSP view resolver? - javascriptNeed help getting the Ninject equivalent for StructureMap syntax - c #spring mvc 3 populate javascript var from properties file - javascriptASP.NET Request.Cookies ["cookie"] returns a null value in IE on initial request - cookiesAdding strings in Java / C # without using StringBuffer.Append or StringBuilder.Append - javaIs there a better way to deconstruct a date? - c #What is the official ESRI solution for serving static map images (i.e. Png, jpg, etc.)? - mapsthose. standards mode, iframes and dom manipulations - javascriptWhat is the best way to handle failed nonce validation? - securityAll Articles