Function: forge-read-date
forge-read-date is a byte-compiled function defined in
forge-commands.el.
Signature
(forge-read-date PROMPT)
Source Code
;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-commands.el
(defun forge-read-date (prompt)
(require (quote org) nil)
(if (fboundp 'org-read-date)
(org-read-date nil nil nil prompt)
(cl-block nil
(while t
(let ((str (read-from-minibuffer prompt)))
(cond ((string-equal str "")
(cl-return nil))
((string-match-p
"\\`[0-9]\\{4\\}[-/][0-9]\\{2\\}[-/][0-9]\\{2\\}\\'" str)
(cl-return str))))
(message "Please enter a date in the format YYYY-MM-DD.")
(sit-for 1)))))