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

kperezkperez USMember ✭✭

Hi!
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

Posts

  • kperezkperez USMember ✭✭

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

Sign In or Register to comment.