Please help me to understand the given timestamp with Z and with Offset

Surendiran Balasubramanian 1 Reputation point
2022-08-11T15:21:00.943+00:00

Hi Team,

Please help me to understand what is the difference between below timestamp

2022-07-22T09:25:47.291Z

2022-07-22T09:25:47.2910000 +00:00

Developer technologies | Transact-SQL
Developer technologies | C#
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 78,006 Reputation points Volunteer Moderator
    2022-08-11T17:33:41.913+00:00

    if the timezone is not specified, then it assumed to be the current timezone (with a database, the timezone specified on the hosting server):

    2022-07-22T09:25:47.2910000 (note: the trailing zeros are meaningless, you can include as many decimal places as you want)

    but you can also include the timezone so its not ambiguous. the Z stands for Zulu or GMT time. as stated above, this is the same as " +00:00" offset from GTM. unlike the the offset, you do not include a space

    1 person found this answer helpful.
    0 comments No comments

  2. Tom Phillips 17,771 Reputation points
    2022-08-11T15:37:44.293+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.