We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 044021c + 67bd001 commit 72db830Copy full SHA for 72db830
Source/FikaAmazonAPI/ConstructFeed/Messages/CartonContentsRequest.cs
@@ -46,7 +46,7 @@ public class CartonItem
46
[XmlElement(ElementName = "ExpirationDate")]
47
public string ExpirationDateFormatted
48
{
49
- get { return this.ExpirationDate.Value.ToString("yyyy-MM-dd"); }
+ get { return this.ExpirationDate.HasValue ? this.ExpirationDate.Value.ToString("yyyy-MM-dd") : null; }
50
set { this.ExpirationDate = DateTime.Parse(value); }
51
}
52
0 commit comments