Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export html from org-mode: custom date format

Tags:

html

org-mode

I am exporting org files to html. I am using Org-mode 7.9.3f with Emacs 24.

How can I get a custom time format in the postamble?

I tried setting the variable org-export-html-postamble-format to

(setq org-export-html-postamble-format 
       '(("en" "<p class=\"date\">Date: %d</p>")))

Then the time format looks like this: 2013-07-16T21:20+0200

I would like to have only the date: 2013-07-16, i.e %y-%m-%d.

like image 294
alko989 Avatar asked Feb 18 '26 07:02

alko989


1 Answers

You should try:

(setq org-export-html-date-format-string "%Y-%m-%d")
like image 113
user2633012 Avatar answered Feb 20 '26 20:02

user2633012



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!