5

I want to change an active date <2017-12-10 17:04> to inactive date [2017-12-10 17:04] and vice versa.

How do I do that?

deshmukh
  • 1,852
  • 13
  • 29
  • 1
    The opposite of "active" is "inactive". Using the word "passive" in the question and in the answer makes it less likely that someone can find this thread in the future using Google or other search engine. See the org-mode manual for the correct terminology: http://orgmode.org/guide/Creating-timestamps.html – lawlist Dec 10 '17 at 17:33
  • 1
    @lawlist: I edited the question. –  Dec 11 '17 at 12:18
  • @lawlist I am editing the question. Thanks for pointing it out. – deshmukh Dec 11 '17 at 12:40
  • @FrancescoTurco Thanks! That was perfect. – deshmukh Dec 11 '17 at 12:41
  • @lawlist FYI regarding the word "passive": not everyone is a native english speaker. In some languages, the opposite of "active" is "passive". So it is valid to mention that word along with "inactive". :) – jue Mar 10 '20 at 09:42

1 Answers1

12

TL;DR; From the keyboard (in org-mode):

C-c .

to activate (convert from inactive to active).

C-c !

to inactivate (convert from active to inactive).

From lisp:

(org-time-stamp t)

to activate, and

(org-time-stamp t t)

to inactivate.

Edit: As Juancho points out, <S-up> and <S-down> both toggle between active and inactive timestamps.

Niclas Börlin
  • 618
  • 5
  • 15
Realraptor
  • 1,253
  • 6
  • 17