Variable: calendar-date-display-form

calendar-date-display-form is a customizable variable defined in calendar.el.gz.

Value

((if dayname (concat dayname ", ")) monthname " " day ", " year)

Documentation

Pseudo-pattern governing the way a calendar date appears.

Used by the function calendar-date-string (which see), a pseudo-pattern is a list of expressions that can involve the keywords month, day, and year (all numbers in string form), and monthname and dayname
(both alphabetic strings). For example, a typical American form would be

       (month "/" day "/" (substring year -2))

whereas

       ((format "%9s, %9s %2s, %4s" dayname monthname day year))

would give the usual American style in fixed-length fields. The variables calendar-iso-date-display-form, calendar-european-date-display-form, and calendar-american-date-display-form provide some defaults for three common styles.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/calendar.el.gz
(defcustom calendar-date-display-form
  (cond ((eq calendar-date-style 'iso)
         calendar-iso-date-display-form)
        ((eq calendar-date-style 'european)
         calendar-european-date-display-form)
        (t calendar-american-date-display-form))
  "Pseudo-pattern governing the way a calendar date appears.
Used by the function `calendar-date-string' (which see), a pseudo-pattern
is a list of expressions that can involve the keywords `month', `day',
and `year' (all numbers in string form), and `monthname' and `dayname'
\(both alphabetic strings).  For example, a typical American form would be

       (month \"/\" day \"/\" (substring year -2))

whereas

       ((format \"%9s, %9s %2s, %4s\" dayname monthname day year))

would give the usual American style in fixed-length fields.  The variables
`calendar-iso-date-display-form', `calendar-european-date-display-form', and
`calendar-american-date-display-form' provide some defaults for three common
styles."
  :type 'sexp
  :risky t
  :set-after '(calendar-date-style calendar-iso-date-display-form
                                   calendar-european-date-display-form
                                   calendar-american-date-display-form)
  :group 'calendar)