Yousesef's answer with OnlyDateConverter is the best. But here is one of the alternatives:
private DateTime _birthday; public string Birthday { get { return _birthday.ToString("yyyy-MM-dd"); } set { _birthday = DateTime.ParseExact(value, "yyyy-MM-dd", CultureInfo.InvariantCulture); } }
Advantage . You do not need to link the Newtonsoft.Json library with your classes.
Disadvantage . The property now displays as a string anywhere you use it, which can cause your own set of problems.
Matt Johnson May 01 '13 at 19:26 2013-05-01 19:26
source share