1

This question already has an answer here:

I want a date object I can just sprinkle throughout my document at any moment. For example, I might type "Today (\date) happens to be quite nice."

marked as duplicate by jub0bs, Adam Liter, barbara beeton, Heiko Oberdiek, Guido May 1 '14 at 20:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    Have you tried using \today? More seriously, what do you mean by "date object". For example, is \newcommand{\halloween}{Oct 31} a "date object"? – Werner May 1 '14 at 19:14
  • I'm just using the language ingrained in my background in python, C++, perl, bla bla bla. \today seems like an object, does it not? – Cucumber Face May 1 '14 at 19:17
  • 2
    @CucumberFace LaTeX2e is not really what you would call "object-oriented"... – jub0bs May 1 '14 at 19:19
  • 1
    Well, you can't really reason in terms of "objects" in LaTeX (2e, at least). All you have is "macros", i.e. things that expand to other stuff that may or may not perform actions. – jub0bs May 1 '14 at 19:21
  • 1
    If the formatting of \today should be changed, see Date format in LaTeX. – Werner May 1 '14 at 19:23

Browse other questions tagged or ask your own question.