In my application i receive Time stamp and in c# code I convert into date and pass this date to execute the stored procedure .My application is placed in server machine. But when this date is printed in log i saw the date is receiving in server one day less. Below is my code to convert from time stamp to date,
DateTime fromDate = new DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);
fromDate =fromDate.AddMilliseconds(1430159400000).ToLocalTime();
date is : '2015-04-28' But when in server it receive as '2015-04-27'. This i came to know when i print this date in log. What i am doing wrong here!. Any suggessions most welcome.
Regards Sangeetha