Function: denote-extract-date-from-front-matter

denote-extract-date-from-front-matter is a natively compiled function defined in denote.el.

Signature

(denote-extract-date-from-front-matter DATE-STRING)

Documentation

Extract date object from front matter DATE-STRING.

Consult the denote-file-types for how this is used.

Source Code

;; Defined in /nix/store/yld6spsps5sfn9w4rjyhkvqlvdgsmvpq-emacs-packages-deps/share/emacs/site-lisp/elpa/denote-4.2.3/denote.el
(defun denote-extract-date-from-front-matter (date-string)
  "Extract date object from front matter DATE-STRING.

Consult the `denote-file-types' for how this is used."
  (let ((date-string (denote-trim-whitespace date-string)))
    (if (string-empty-p date-string)
        nil
      (date-to-time date-string))))