Change
DateTimeKind.Utc to
DateTimeKind.Local then it will work
double dTimeSpan = Convert.ToDouble("1404757800000");
DateTime dtReturn = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Local).AddSeconds(Math.Round(dTimeSpan / 1000d)).ToLocalTime();
DateTime dtEPoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Local);
DateTime dtTime = dtReturn.Subtract(new TimeSpan(dtEPoch.Ticks));
long lngTimeSpan = dtTime.Ticks / 10000;
string strTimeSpan = lngTimeSpan.ToString();
Get more details
Here[
^]