I have some issue with the return of a WEB API.
This API processes the data and returns an object of type List <Dictionary <string, object >>.
The problem is that when returning a date (datetime) the return format change depending on the server on which the site is installed.
For example I have these two cases:
the first is the correct size, while the second is to wrong.
I have the following statement in the code that converts (should convert) the date to the desired format:
dict.Add(dc.Caption, ((DateTime)dr[dc.Caption]).ToString("yyyy-MM-dd HH:mm:ss"));
Can you help me?
Bye Davide

