3 hours difference RRS feed

  • Question

  • User-1104215994 posted


    I am calling a web service. In the <g class="gr_ gr_226 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-ins replaceWithoutSep" id="226" data-gr-id="226">response</g> I am getting <g class="gr_ gr_136 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" id="136" data-gr-id="136">date</g> as follows, there are 3 hours difference. Should I use AddHours?

    purchaseStatusDate": "2019-09-29T13:19:38Z"

    Best Regards.

    Sunday, September 29, 2019 1:25 PM


All replies

  • User475983607 posted

    Z is Zulu time or UTC.  

    Sunday, September 29, 2019 1:54 PM
  • User-1104215994 posted


    Sunday, September 29, 2019 3:46 PM
  • User288213138 posted

    Hi cenk1536,

    Do you mean that UTC time is different from your local time by three hours? Then you want to convert time through the AddHours method?

    If so, you should use DateTime.ToLocalTime Method to convert the UTC  to local time.

    More information about ToLocalTime you can refer to this link:


    Best regards,


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 30, 2019 3:12 AM
  • User475983607 posted

    I think you misunderstand.  The Z at the end of the time is UTC.

    purchaseStatusDate": "2019-09-29T13:19:38Z"

    Similar to many of your posts, there is not enough information.  I suspect either your test is flawed or you have a code issue.

    Monday, September 30, 2019 11:02 AM
  • User379720387 posted

    If you are going to a db with this date, then store it as UTC (mgebhard seems to indicate Z = UTC).

    Then convert to local time for human consumption.

    Monday, September 30, 2019 2:45 PM