Hi all,
today i am writing an API that should receive a datetime format
public DateTime? DateOfBirth
{
get { return this.GetPropertyValue<DateTime?>("xxxx_dateofbirth"); }
set { this.SetPropertyValue<DateTime?>("xxxx_dateofbirth", value); }
}
and create a request.
That request has to be in string format. So i need to create the request by using the datetime value to string converted.
I tried
request.DateOfBirth = Convert.ToString(DemographicsModification.DateOfBirth);
and also
request.DateOfBirth = DemographicsModification.DateOfBirth.ToString();
but i have always an exception error debugging, it says DateOfBirth value is not correct
There are some other ways to make it?
Thank you a lot
*This post is locked for comments
I have the same question (0)