From 1867fc6f93c44c44ce9bb56d9d43b2d854aa03db Mon Sep 17 00:00:00 2001 From: Michael Bisbjerg Date: Thu, 16 May 2013 20:42:13 +0200 Subject: [PATCH] - Fixed issue #10 - Changed the model slightly, but should be backwards compatible --- TMDbLib/Objects/Search/SearchMovie.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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