I have a class with Getter and Setter:
public class MyClassEntity
{
public DateTime MyDate { get; set; }
}
public MyClassEntity MyData { get; set; }
That class is serialized from xml generated by Stored Procedure. This is an XML portion that is serialized to MyData class
<MyData>
<MyDate>2017-03-29</MyDate>
</MyData>
I'm looking for the solution to return MyDate.ToLongDateString() to my model.
I tried a couple of things but that did not help much.
I was trying to declare a string and assign a value.ToLongDateString()
I could not convert value
to what I need.
How can I do that?