{"id":597,"date":"2023-07-10T15:53:20","date_gmt":"2023-07-10T07:53:20","guid":{"rendered":"https:\/\/www.ruianding.com\/blog\/?p=597"},"modified":"2024-08-01T16:45:36","modified_gmt":"2024-08-01T08:45:36","slug":"converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens","status":"publish","type":"post","link":"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/","title":{"rendered":"Converting Timestamp Claim to Readable Timestamp in JWT Tokens"},"content":{"rendered":"\n<p>In the JWT token, there are claims such as <code>iat<\/code> (issued at) and <code>exp<\/code> (expiration time). However, these values are not user-friendly and difficult to read in their current numeric format.<\/p>\n\n\n\n<p>Here&#8217;s a sample JWT token with decoded claims:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"983\" height=\"849\" src=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/07\/image-38.png\" alt=\"\" class=\"wp-image-603\" style=\"width:759px;height:655px\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Convert by PowerShell <\/h4>\n\n\n\n<p>To convert these numeric dates into a more readable format, you can use the following PowerShell command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$numericDate = '1537231048'\n([DateTime]('1970,1,1')).AddSeconds($numericDate)<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"524\" height=\"69\" src=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/07\/image-37.png\" alt=\"\" class=\"wp-image-599\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Unix Timestamp Decoder<\/h4>\n\n\n\n<p><a href=\"https:\/\/www.ruianding.com\/apps\/timestamp_convert\/timestamp.html\">https:\/\/www.ruianding.com\/apps\/timestamp_convert\/timestamp.html<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the JWT token, there are claims such as iat (issued at) and exp (expiration time). However, these values are not user-friendly and difficult to read in their current numeric format. Here&#8217;s a sample JWT token with decoded claims: Convert by PowerShell To convert these numeric dates into a more readable format, you can use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[35,10],"tags":[],"class_list":["post-597","post","type-post","status-publish","format-standard","hentry","category-saas","category-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Converting Timestamp Claim to Readable Timestamp in JWT Tokens - \u6781\u7b80IT\uff5cSimpleIT<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Converting Timestamp Claim to Readable Timestamp in JWT Tokens - \u6781\u7b80IT\uff5cSimpleIT\" \/>\n<meta property=\"og:description\" content=\"In the JWT token, there are claims such as iat (issued at) and exp (expiration time). However, these values are not user-friendly and difficult to read in their current numeric format. Here&#8217;s a sample JWT token with decoded claims: Convert by PowerShell To convert these numeric dates into a more readable format, you can use [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/\" \/>\n<meta property=\"og:site_name\" content=\"\u6781\u7b80IT\uff5cSimpleIT\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-10T07:53:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-01T08:45:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/07\/image-38.png\" \/>\n<meta name=\"author\" content=\"Ruian Ding\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ruian Ding\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/\"},\"author\":{\"name\":\"Ruian Ding\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\"},\"headline\":\"Converting Timestamp Claim to Readable Timestamp in JWT Tokens\",\"datePublished\":\"2023-07-10T07:53:20+00:00\",\"dateModified\":\"2024-08-01T08:45:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/\"},\"wordCount\":79,\"publisher\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\"},\"image\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/07\/image-38.png\",\"articleSection\":[\"SaaS\",\"Tutorial\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/\",\"url\":\"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/\",\"name\":\"Converting Timestamp Claim to Readable Timestamp in JWT Tokens - \u6781\u7b80IT\uff5cSimpleIT\",\"isPartOf\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/07\/image-38.png\",\"datePublished\":\"2023-07-10T07:53:20+00:00\",\"dateModified\":\"2024-08-01T08:45:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/#primaryimage\",\"url\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/07\/image-38.png\",\"contentUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/07\/image-38.png\",\"width\":983,\"height\":849},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.ruianding.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Converting Timestamp Claim to Readable Timestamp in JWT Tokens\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/#website\",\"url\":\"https:\/\/www.ruianding.com\/blog\/\",\"name\":\"Ruian's Tech Troubleshooting Toolbox\",\"description\":\"Debug the World.\",\"publisher\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\"},\"alternateName\":\"\u4e01\u777f\u5b89\u7684\u6280\u672f\u5206\u4eab\u535a\u5ba2\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.ruianding.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\",\"name\":\"Ruian Ding\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png\",\"contentUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png\",\"width\":284,\"height\":284,\"caption\":\"Ruian Ding\"},\"logo\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"I am currently a Support Specialist at NIO, focusing on cloud-related issues for NIO Power. Previously, at Microsoft Entra ID, I specialized in identity and access management (IAM), including device registration, Windows Hello for Business (WHfB), multi-factor authentication (MFA), and single sign-on (SSO). In addition to my core expertise, I have a strong foundation in Active Directory, Servers, Cloud Computing, Network Administration, and Front-end Web Development. This diverse technical skill set enables me to effectively handle a wide range of challenges in a fast-paced IT environment.\",\"sameAs\":[\"https:\/\/www.ruianding.com\"],\"url\":\"https:\/\/www.ruianding.com\/blog\/author\/ruiand\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Converting Timestamp Claim to Readable Timestamp in JWT Tokens - \u6781\u7b80IT\uff5cSimpleIT","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/","og_locale":"en_US","og_type":"article","og_title":"Converting Timestamp Claim to Readable Timestamp in JWT Tokens - \u6781\u7b80IT\uff5cSimpleIT","og_description":"In the JWT token, there are claims such as iat (issued at) and exp (expiration time). However, these values are not user-friendly and difficult to read in their current numeric format. Here&#8217;s a sample JWT token with decoded claims: Convert by PowerShell To convert these numeric dates into a more readable format, you can use [&hellip;]","og_url":"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/","og_site_name":"\u6781\u7b80IT\uff5cSimpleIT","article_published_time":"2023-07-10T07:53:20+00:00","article_modified_time":"2024-08-01T08:45:36+00:00","og_image":[{"url":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/07\/image-38.png","type":"","width":"","height":""}],"author":"Ruian Ding","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ruian Ding","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/#article","isPartOf":{"@id":"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/"},"author":{"name":"Ruian Ding","@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b"},"headline":"Converting Timestamp Claim to Readable Timestamp in JWT Tokens","datePublished":"2023-07-10T07:53:20+00:00","dateModified":"2024-08-01T08:45:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/"},"wordCount":79,"publisher":{"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b"},"image":{"@id":"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/07\/image-38.png","articleSection":["SaaS","Tutorial"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/","url":"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/","name":"Converting Timestamp Claim to Readable Timestamp in JWT Tokens - \u6781\u7b80IT\uff5cSimpleIT","isPartOf":{"@id":"https:\/\/www.ruianding.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/#primaryimage"},"image":{"@id":"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/07\/image-38.png","datePublished":"2023-07-10T07:53:20+00:00","dateModified":"2024-08-01T08:45:36+00:00","breadcrumb":{"@id":"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/#primaryimage","url":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/07\/image-38.png","contentUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/07\/image-38.png","width":983,"height":849},{"@type":"BreadcrumbList","@id":"https:\/\/www.ruianding.com\/blog\/converting-timestamp-claim-to-readable-timestamp-in-jwt-tokens\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.ruianding.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Converting Timestamp Claim to Readable Timestamp in JWT Tokens"}]},{"@type":"WebSite","@id":"https:\/\/www.ruianding.com\/blog\/#website","url":"https:\/\/www.ruianding.com\/blog\/","name":"Ruian's Tech Troubleshooting Toolbox","description":"Debug the World.","publisher":{"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b"},"alternateName":"\u4e01\u777f\u5b89\u7684\u6280\u672f\u5206\u4eab\u535a\u5ba2","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.ruianding.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b","name":"Ruian Ding","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png","contentUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png","width":284,"height":284,"caption":"Ruian Ding"},"logo":{"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/"},"description":"I am currently a Support Specialist at NIO, focusing on cloud-related issues for NIO Power. Previously, at Microsoft Entra ID, I specialized in identity and access management (IAM), including device registration, Windows Hello for Business (WHfB), multi-factor authentication (MFA), and single sign-on (SSO). In addition to my core expertise, I have a strong foundation in Active Directory, Servers, Cloud Computing, Network Administration, and Front-end Web Development. This diverse technical skill set enables me to effectively handle a wide range of challenges in a fast-paced IT environment.","sameAs":["https:\/\/www.ruianding.com"],"url":"https:\/\/www.ruianding.com\/blog\/author\/ruiand\/"}]}},"_links":{"self":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts\/597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/comments?post=597"}],"version-history":[{"count":6,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts\/597\/revisions"}],"predecessor-version":[{"id":1912,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts\/597\/revisions\/1912"}],"wp:attachment":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/media?parent=597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/categories?post=597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/tags?post=597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}