Is there a simple way to configure JSON.NET so that some DateTime
fields will be formatted without time and other DateTime
fields will still be formatted with time?
Example:
{ firstName: 'John', lastName : 'Doe', birthday: '1965-09-23' }
See Question&Answers more detail:os