diff --git a/TMDbLib/Objects/Search/SearchMovie.cs b/TMDbLib/Objects/Search/SearchMovie.cs index 75d83b5..0cbc752 100644 --- a/TMDbLib/Objects/Search/SearchMovie.cs +++ b/TMDbLib/Objects/Search/SearchMovie.cs @@ -1,4 +1,5 @@ using System; +using System.Globalization; namespace TMDbLib.Objects.Search { @@ -8,11 +9,22 @@ namespace TMDbLib.Objects.Search public bool Adult { get; set; } public string BackdropPath { get; set; } public string OriginalTitle { get; set; } - public DateTime ReleaseDate { get; set; } + public string Release_Date { get; set; } public string PosterPath { get; set; } public double Popularity { get; set; } public string Title { get; set; } public double VoteAverage { get; set; } public int VoteCount { get; set; } + + public DateTime ReleaseDate + { + get + { + DateTime dt; + DateTime.TryParseExact(Release_Date, "yyyy-MM-dd", CultureInfo.CurrentCulture, DateTimeStyles.None, out dt); + + return dt; + } + } } } \ No newline at end of file