{"id":30777,"date":"2026-11-02T16:13:13","date_gmt":"2026-11-02T15:13:13","guid":{"rendered":"https:\/\/support.serviceprotokoll.se\/kb\/tags-for-date-format\/"},"modified":"2026-11-02T18:35:20","modified_gmt":"2026-11-02T17:35:20","slug":"tags-for-date-format","status":"publish","type":"ht_kb","link":"https:\/\/support.serviceprotokoll.se\/en\/kb\/tags-for-date-format\/","title":{"rendered":"Tags for date format"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">You can specify any date and time format in the tags of Word templates.<\/p>\n\n<p class=\"wp-block-paragraph\">The formatting works for date fields throughout the document, including repeating table rows, bookings, service objects, custom date fields, and articles to order.<\/p>\n\n<p class=\"wp-block-paragraph\">Custom formatting is only used where format is specified after : in the date tag (see example under Syntax)<\/p>\n\n<h5 class=\"wp-block-heading\">Syntax<\/h5>\n\n<p class=\"wp-block-paragraph\">{Tag:format}<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>Example:<\/strong><\/p>\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th class=\"has-text-align-left\" data-align=\"left\"><strong>Tag<\/strong><\/th><th class=\"has-text-align-left\" data-align=\"left\"><strong>Result<\/strong><\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-left\" data-align=\"left\">{Date}<\/td><td class=\"has-text-align-left\" data-align=\"left\">Existing standard format<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">{Date:yyyy-MM-dd}<\/td><td class=\"has-text-align-left\" data-align=\"left\">2026-10-29<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">{Date:dd\/MM\/yyyy}<\/td><td class=\"has-text-align-left\" data-align=\"left\">29\/10\/2026<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">{Date:dd MMMM yyyy}<\/td><td class=\"has-text-align-left\" data-align=\"left\">29 October 2026<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">{Date:dddd d MMMM yyyy}<\/td><td class=\"has-text-align-left\" data-align=\"left\">Thursday 29 October 2026<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">{Date:yyyy-MM-dd HH:mm:ss}<\/td><td class=\"has-text-align-left\" data-align=\"left\">2026-10-29 14:30:00<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">{StartTime:HH:mm}<\/td><td class=\"has-text-align-left\" data-align=\"left\">14:30<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">{DeliveryDate:dd MMM yyyy}<\/td><td class=\"has-text-align-left\" data-align=\"left\">29 oct. 2026<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">{Date+30:yyyyMMdd}<\/td><td class=\"has-text-align-left\" data-align=\"left\">20261128<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<h5 class=\"wp-block-heading\">Note<\/h5>\n\n<ul class=\"wp-block-list\">\n<li>Without a specified format, the tags work just as before in your template.<\/li>\n\n\n\n<li><code>MM<\/code> = mount, <code>mm<\/code> = minutes.<\/li>\n\n\n\n<li>Month and weekday names follow the active language culture at PDF generation.<\/li>\n\n\n\n<li>If a date is missing, the field is left blank.<\/li>\n\n\n\n<li>Only date fields are affected, not regular text or numeric fields.<\/li>\n<\/ul>\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>You can specify any date and time format in the tags of Word templates. The formatting works for date fields throughout the document, including repeating table rows, bookings, service objects, custom date fields, and articles to order. Custom formatting is only used where format is specified after : in the&#8230;<\/p>\n","protected":false},"author":2,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"_searchwp_excluded":"","footnotes":""},"ht-kb-category":[808],"ht-kb-tag":[],"class_list":["post-30777","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-print-template-tags"],"_links":{"self":[{"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/ht-kb\/30777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/comments?post=30777"}],"version-history":[{"count":2,"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/ht-kb\/30777\/revisions"}],"predecessor-version":[{"id":30781,"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/ht-kb\/30777\/revisions\/30781"}],"wp:attachment":[{"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/media?parent=30777"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/ht-kb-category?post=30777"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/support.serviceprotokoll.se\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=30777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}