K
kapil kumar velpuri
Guest
Hi All,<o></o>
Hope everybody is doing good.<o></o>
why below logic returns previous day(08/05/2019)
string date="2019-08-06T00:00:00.000Z"
date=Convert.ToDateTime(date).ToString("MM/dd/yyyy");
It works when i use below logic
Convert.ToDateTime(date).ToUniversalTime().ToString("MM/dd/yyyy");
the "Z" means universal time but which doesn't has any time, can you please let me know the cause.
My servers are in the EST time zone
Thank you in advance for your help.
Regards,
Kapil.
Continue reading...
Hope everybody is doing good.<o></o>
why below logic returns previous day(08/05/2019)
string date="2019-08-06T00:00:00.000Z"
date=Convert.ToDateTime(date).ToString("MM/dd/yyyy");
It works when i use below logic
Convert.ToDateTime(date).ToUniversalTime().ToString("MM/dd/yyyy");
the "Z" means universal time but which doesn't has any time, can you please let me know the cause.
My servers are in the EST time zone
Thank you in advance for your help.
Regards,
Kapil.
Continue reading...