Variable: org-html-datetime-formats

org-html-datetime-formats is a customizable variable defined in ox-html.el.gz.

Value

("%F" . "%FT%T")

Documentation

Formats used for the timestamp added as metadata to the time HTML element.

This only has an effect when org-html-html5-fancy is enabled, but does not affect how the timestamp is displayed. The format in CAR represents the timestamp used for timestamps without a time component, CDR the one for the full date and time. Note that the HTML standard restricts what timestamp formats are considered valid for the datetime attribute. See format-time-string for more information on its components.

This variable was added, or its default value changed, in Org version
9.8.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-html.el.gz
(defcustom org-html-datetime-formats '("%F" . "%FT%T")
  "Formats used for the timestamp added as metadata to the time HTML element.
This only has an effect when `org-html-html5-fancy' is enabled, but
does not affect how the timestamp is displayed.  The format in CAR
represents the timestamp used for timestamps without a time component,
CDR the one for the full date and time.  Note that the HTML standard
restricts what timestamp formats are considered valid for the datetime
attribute.  See `format-time-string' for more information on its
components."
  :type '(cons string string)
  :group 'org-export-html
  :package-version '(Org . "9.8")
  :safe #'consp)