im getting incorrect time in the remote server.i'm getting the correct datetime in the local system.our server may be in other country, how to get correct datetime which is im getting in the local system.
Local application date time - 23/05/2018 06:40:20 PM
time after deploy in server - 23/05/2018 09:10:20 AM
timestamp - 2018-05-23T10:56:12.730Z
getting output
23/05/2018 09:10:20 AM
Expected Output
23/05/2018 06:40:20 PM
Code
string time = con.PayloadsUl.Timestamp.ToString();
onem2m.time = Convert.ToDateTime(time).ToString(string.Format("dd/MM/yyyy hh:mm:ss tt"));
data type
public class onem2m {
public string dataFrame{ get; set; }
public string time { get; set; }
}