Function: diary-icalendar-format-date

diary-icalendar-format-date is a byte-compiled function defined in diary-icalendar.el.gz.

Signature

(diary-icalendar-format-date DT)

Documentation

Format the icalendar-date or icalendar-date-time DT for the diary.

If DT is a date-time, only the date part is considered. The date is formatted with calendar-date-string according to the pattern in diary-date-insertion-form.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/diary-icalendar.el.gz
(defun di:format-date (dt)
  "Format the `icalendar-date' or `icalendar-date-time' DT for the diary.
If DT is a date-time, only the date part is considered.  The date is
formatted with `calendar-date-string' according to the pattern in
`diary-date-insertion-form'."
  (dlet ((calendar-date-display-form diary-date-insertion-form))
    (cl-typecase dt
      (ical:date (calendar-date-string dt t t))
      (ical:date-time (calendar-date-string (ical:date-time-to-date dt) t t)))))