Forum Xamarin.iOS
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

trying to pass a value DateTime from an object to another object of same tipe of object doesn't work

kperezkperez USMember ✭✭

I'm trying to pass a value from a variable DateTime to another variable from a tipe DateTime and when it does it doesn't work from wright way and set the value of the variable to that i pass the value to 01/01/0001 12:00am

this is the line code

public DateTime result{get;set;}

public DateTime ObtenerData (DateTime data)

        return return =  data.ToUniversalTime();

the object "data" is pass with value 11/31/2014 5:50pm
and when is set to the object "return" and review the data contains in "return" is 01/01/0001 12:00am

what's wrong?

i appreciated you can help


  • kperezkperez USMember ✭✭

    i'm testing in mode debug.. and it's ilogic that this mode could made this.

Sign In or Register to comment.