I solved the problem by putting the following in the file to be exported: #+DATE: [2013-05-21 Tue 14:45]
However, this means I have to remember to change the date every time I export. Is there an easier way to do this? Scott Randby On 05/21/2013 01:49 PM, Scott Randby wrote: > I'm having trouble customizing the variable > org-export-html-date-format-string. Before I tried to customize it, I > would get the date in the postamble when I exported to html: > > <p class="date">Created: 2013-05-21 Tue 12:44</p> > > The original string for the variable is: %Y-%m-%dT%R%z > > I don't want this string, so I changed it to %F%T%Z which didn't give > any date when I exported. So I changed the string to %Y-%m-%d and still > had no date after export. Changing back to the default string doesn't > work either. > > This seems like a bug. Here is what is in my init.el after customization: > > '(org-export-html-date-format-string "%Y-%m-%dT%R%z") > > '(org-html-postamble t) > > '(org-html-postamble-format (quote (("en" "<p class=\"author\">Author: > %a </p> <p class=\"date\">Date: %d</p> <p class=\"creator\">%c</p>")))) > > Here is the html of the postamble after export: > > <div id="postamble" class="status"> > <p class="author">Author: Scott P. Randby </p> > <p class="date">Date: </p> > <p class="creator"><a > href="http://www.gnu.org/software/emacs/">Emacs</a> 24.2.1 (<a > href="http://orgmode.org">Org</a> mode 8.0.3)</p> > </div> > > How do I get the date variable to work? > > Scott Randby >