I am trying to convert a date from 19/10/2012 00:00:00
to 19/10/2012
. I can't state the date type in the viewmodel like here as code is as below:
Viewmodel:
public Appointment Appointment {get; set;}
I am aware that mapping is an option but would like to see if an alternate option is available as this will make reusing the code easier and if the service changes at all then mapping will complicate things.
Mock service example:
public class Appointment
{
[DataMember]
public DateTime AppointmentDate { get; set; }
[DataMember]
public Identifier AppointmentIdentifier { get; set; }
[DataMember]
public string Location { get; set; }
[DataMember]
...etc