I am having a problem with the DateTime format used by ServiceStack.
For example, I have a simple request object like this.
public class GetAllUpdatedStudents : IReturn<GetAllUpdatedStudentsResponse>
{
public DateTime LastUpdate { get; set; }
}
When sending DateTime (mm / dd / yyyy) from 12/10/2016, ServiceStack will convert it to the DateTime format (dd / mm / yyyy), so the system considers this to be October 12, and not December 10.
How to tell ServiceStack not to do this, and we need the mm / dd / yyyy format when binding DateTime properties to object requests?
source
share