{datetime} is about either setting time stamps for your document or handling time data in {diagrams} (e.g., using {pgfplots}). If you are setting the date/time for a title, include the {titles} tag.

learn more… | top users | synonyms

12
votes
1answer
846 views

Difference between two dates

Is there a macro that calculates the year and months from a given start date and the current date. So let's say I have 05/02/2010 (the start date), then it should do the following: Today - ...
17
votes
2answers
682 views

Handling different time zones

I'm looking for a way to handle date/times with different time zones. For example in svn-multi and filemod a date and time with a timezone is returned. I like to be able to compare times in different ...
13
votes
4answers
4k views

Having a LaTeX PDF display the date the document was printed, not compiled…

I have been looking around for quite some time trying to find a way for a PDF (created using XeTeX) to adjust the date accordingly by the date it was printed - not compiled. I am familiar with \date, ...
7
votes
5answers
1k views

Date of file creation

When I write my notes, (I actually use lyx but that does not matter) I like to add a header with the name of file and the date the file was compiled. This I do using fancyhdr package and ...
18
votes
2answers
867 views

Automated age calculation

How can I calculate my age at compile-time in LaTeX? Something like: I'm \myage{day}{month}{year} years old. would be most awesome.
12
votes
3answers
720 views

Macro for week number

Is there a macro or package to calculate the ISO week number or alternative can someone help me with one?
23
votes
3answers
7k views

Referring to dates other than \today

Is there a package that allows one to work with dates in the following way: just as \date shows today's date, I would like to have a command that dates the document 7 days from today. Also, since I ...
2
votes
1answer
561 views

datetime and datenumber package conflict?

Background Trying to include a date two days in the future from when the content was generated. Problem The following results in an empty day name: \usepackage{datetime} \usepackage{datenumber} % ...
19
votes
2answers
2k views

Write date, time, and time zone

Background Looking to include the current date, time, and timezone within a PDF. Problem The datetime package does not provide a macro for the current timezone. Question How would you write a ...
4
votes
1answer
312 views

Trouble using \formatdate inside \caption

I am having trouble formatting a date inside a caption using the datetime package. I'm told "Incomplete \iffalse; all text was ignored after line 6. \documentclass{article} \usepackage{datetime} ...
25
votes
2answers
2k views

Date calculations

I'm building a LaTeX document that helps me to formulate quotations for my customers. Since I decided to offer monthly recurring payments I'd like to have payment dates calculated automatically ...
69
votes
2answers
76k views

Omitting the date when using \maketitle

I'm using the \author and \title commands to produce a title with \maketitle. I also know that there is a \date command to specify the date of my work. However, if I omit \date, \maketitle will ...
42
votes
2answers
17k views

How can I typeset the date/time at compile time?

For printed drafts of my papers, I would like to add a timestamp on every page with the date/time when the document was last compiled. Is there any LaTeX command that produces the current date/time at ...
30
votes
3answers
6k views

Is there a way to add a timer to a Beamer presentation?

I have seen presentations in Power Point which contain a timer. Can this be done in Beamer using a simple command, or maybe a package? If not a timer, is it possible to at least get a clock on your ...
27
votes
3answers
8k views

How to insert 4 digit year that shows up in \today?

Using the LaTeX command \today, I can insert the current date. Is there any way to insert the current year with a simple command? All I want is the simple 4 digit year that shows up in \today.
8
votes
3answers
45k views

Insert date set with \date command

I searched all morning to do this. I want to insert in my custom title page the date, author, title set with the following commands \date{The date} \author{Me \and Other} \title{the document title} ...