I know how to serialize a "Date" to / from XML using C#:
[XmlElement(DataType ="date")]
public DateTime LastInvited { get => _LastInvited; set => _LastInvited = value; }
private DateTime _LastInvited;
But what about time?
public DateTime CurrentMeetingTime { get => _CurrentMeetingTime; set => _CurrentMeetingTime = value; }
private DateTime _CurrentMeetingTime;
I know that there is [XmlElement(DataType ="time")] but I only want to have 24 hour times with no seconds in the XML. Eg:
<CurrentMeetingTime>10:00</CurrentMeetingTime><CurrentMeetingTime>14:00</CurrentMeetingTime>
You could try to add a string property that represents the time. Something like this: