I feel like elisp (or org-mode) must have something like (days-until '2018-01-01) which would calculate the days between today and 2018-01-01. How would I go about implementing that?

  • Here is a link to either a related or a potential duplicate thread entitled "Counting the number of days that have passed since a certain date": emacs.stackexchange.com/questions/23893/… If your question is a duplicate,then just delete it. If it is somehow different, please try to distinguish your current question from the two alternative answers in the linked thread.
    – lawlist
    Commented Jun 16, 2017 at 1:04
  • This isn't about counting days that have passed since a certain date, but counting days to come until a certain date.
    – Jonathan
    Commented Jun 16, 2017 at 1:14
  • The distance between two points is the same, whether you start from the beginning or from the end. The difference between today looking back a day is 24 hours. The difference between yesterday and looking forward a day to today is 24 hours.
    – lawlist
    Commented Jun 16, 2017 at 1:16
  • 1
    Not sure for new year, but for Xmas it's easy, since when you use Emacs it's always Xmas.
    – Stefan
    Commented Jun 16, 2017 at 13:34

1 Answer 1


Found it. It's org-time-stamp-to-now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.