I have the following problem I am working with Microsoft.ReportViewer.WebForms Version = 10.0.0.0 in visual studio 2010 .NET 4 I am doing an attendance report
In the Value section of the field I have the following * CDate (Fields! Time1.Value) .ToString ("hh: mm tt") * I want the time to be converted to am / pm format on a windows 10 machine yes It works but when passing it to the server where the report that is a windows 2012 R2 Standard will be hosted, it does not show me that format, I attach an image of how it looks on the server
I also tried converting it to the format like this: Convert.ToDateTime (Fields! Time1.Value) .ToString ("hh: mm: ss tt")
But it does not work
I checked the server time format and it is correct.
I am using IIS
Is there something else I need to configure or why is the format not up to me?
Upgrade:
image upgrade
error
question from:
https://stackoverflow.com/questions/65602665/the-time-format-is-not-respected-in-c-sharp 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…