{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

0
votes
1answer
46 views

print hour & minutes in french style

I'm using babel, datetime & siunitx but I don't see an automatic way to mark and to write time in the french style. It's possible with plain hour with datetime: SI{18}{\hour} -> 18 h. But for ...
2
votes
1answer
41 views

fmtcount problems with french & newcommand

I built & used a complex command \qd this spring who requires datetime package and therefore fmtcount. I start again to use my command these days, but occurred some changes. I suspect updates of ...
6
votes
2answers
79 views

How to compare two times from datetime package

I have this code \documentclass{article} \usepackage{datetime} \begin{document} \currenttime \par \formattime{18}{0}{0} \end{document} and want to compare these times if the time is before or ...
8
votes
3answers
466 views

Determine last day of given month

I want to determine how many days there are in a particular month. Using the datenumber package, I thought I could simply set the date to the 1st of the next month and then back up one day would be ...
0
votes
1answer
33 views

What is the time for the beginning of a day? \formattime{00}{00}{00} or \formattime{24}{00}{00}

I have set \settimeformat{ampmtime}, and I want to print a time which is the very beginning of the day. For \formattime{00}{00}{00}, it gives me 12:00am; for \formattime{24}{00}{00}, it gives me ...
0
votes
0answers
33 views

Using macros in Memoir chapter for a Diary

I'm trying to create an automatic chapter head which displays the day of the week and date (kind of like a diary entry) I have a directory called "august" within which is a file called 01.tex. The ...
3
votes
1answer
71 views

\usepackage's phantom \ifnum [duplicate]

So I'm trying my hand at creating some packages (on WriteLaTeX, because my Surface can't run TeX1), and have run into a rather fascinating problem. My packages just won't load; they complain about ...
3
votes
1answer
63 views

Custom Dates for every date

In LaTeX you can output the current date by writing \today in your document. This is very handy if you want to set the date of the document to today. Normally I write the preamble of my documents like ...
5
votes
2answers
141 views

LaTeX \usepackage{datetime} and \usepackage{scrtime} are off by an hour

I want to print the current time in my LaTeX file but both \usepackage{datetime} and \usepackage{scrtime} show the wrong time. Can I correct to a different time zone? Adjust for daylight savings? I ...
4
votes
1answer
109 views

How to use Eastern Armenian month names instead of Western Armenian?

When using for example the datetime package and printing month names, LaTeX uses Western Armenian month names: Յունուար Փետրուար Մարտ Ապրիլ Մայիս Յունիս Յուլիս Օգոստոս Սեպտեմբեր Հոկտեմբեր Նոյեմբեր ...
2
votes
1answer
71 views

Time calculations

Based on a given starting time, I'd like to automatically calculate a time table. Based on https://groups.google.com/forum/#!topic/de.comp.text.tex/BQrRUYmDrHw I put the following MWE together: ...
10
votes
2answers
309 views

Advancing \today by x days [duplicate]

New LaTex user here, hoping you can help me. I am drafting a letter, the submission date of which I do not yet know. For this reason I am dating it using \today. However, in the text of the letter, ...
1
vote
1answer
73 views

Problem working fontspec, babel and datetime with cyrillic

I have discovered that fontspec with russian babel settings doesn't work with datetime package. I tried to compile such code: \documentclass[a4paper,11pt]{article} \usepackage[T2A]{fontenc} ...
4
votes
2answers
77 views

\the\year in Roman and \the\month in text

I would like to get the month in text e.g., June and the year in Roman, e.g. MMXIV when I call \the\month and \the\year I also would like to avoid using any external package (I found some related ...
10
votes
3answers
287 views

Change \the\year

Is it possible to make LaTeX believe that the current year is 2012, so that \the\year prints 2012? \documentclass{article} \begin{document} % What to do so that the following prints 2012? ...
3
votes
2answers
94 views

How remove title page's set date

how to delete the surrounded date without deleting the footer's date? I've tried \date{}, but this would remove the footer's date too.
0
votes
0answers
71 views

How to input current date directly from datetime to pgfgantt

I would like to input the current date taken from "datetime" into the "pgfgantt" package to update the date bar automatically at compilation. The date seems to be in the correct format, however ...
3
votes
3answers
171 views

Print current date without updating

I am trying to keep a journal-type file using TeX. I would like to create a template in which I need not manually enter the date each day. Example: January 26, 2014 Entry for the day here. January ...
1
vote
1answer
52 views

Print week number in title

Is there is a way to insert week number instead to type it directly? My current document code: \documentclass[a4paper,12pt]{article} \usepackage{cmap} \usepackage[T2A]{fontenc} ...
3
votes
3answers
112 views

Custom Date on Latex

I have the following code: \shortdayofweekname{<day>}{<month>}{<year>}. Packages: \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} ...
2
votes
1answer
108 views

How to create a timeline with chronosys or something similar?

I need to create a timeline in latex. This is what I have right now \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{chronosys} \begin{document} \startchronology ...
5
votes
2answers
127 views

Wrong date format if datenumber is loaded after datetime

The date format is wrong when datetime and datenumber are used at the same time, datenumber being loaded after datetime. As can be tested with the following MWE: \documentclass{article} ...
11
votes
1answer
122 views

Make an index of historical time periods

I'm writing my thesis & I want to make an index with centuries, years, month, day, event & historical periods. So I try to build some commands, but unsatisfactory, I'm looking for your help. ...
5
votes
2answers
64 views

\datetime don't work in \index

I'm building a complex index of dates & I'm using a lot of home commands. All is ok except using \datetime commands with argument for exemple ...
5
votes
1answer
141 views

Time passed from a specific date

I would like to put in my resume N years experience in Java where N would be generated based on the date provided in the LaTeX file. Preferably in rounded years, i.e. If the beginning date was ...
2
votes
0answers
34 views

How can I get a date object in LaTeX? [duplicate]

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."
5
votes
1answer
88 views

Printing full date in bibliography (BibLaTeX)

How can I get biblatex to print the full date in the references? I could have sworn it used to do this all by itself and I've got some old files where I've managed this, but I can't see anything in ...
1
vote
1answer
68 views

Omitting date when exporting from org-mode

How can I omit the date from being displayed when exporting to LaTeX from emacs org-mode? This (within the .org file) works to omit the date when exporting to ascii: #+OPTIONS: timestamp nil But ...
4
votes
1answer
54 views

datetime (fmtcount) problem with \ordinalnum

I'm using \ordinalnum with datetime package (the same with fmtcount package), but in french, the height & the size of the superscript using \ordinalnum are different from those of (for exemple) ...
6
votes
1answer
100 views

Add (n) working days to a specific date

My g-brief will contain something like "I have noted a deadline for your answer of ten working days until...". Is there a package or way to add n working-days (ie. mon-fri, let's not over complicate ...
5
votes
2answers
2k views

how to add a current date, place and signature to the cv

I am using the template from here https://www.sharelatex.com/templates/cv/moderncv-classic/ I wanted texworks to add the latest date and also place and signature(.jpg item) everytime I typeset my cv ...
9
votes
4answers
1k views

Formatting dates “day month year” with biblatex

What is the correct way to have “day month year” formatting in biblatex? Given this document: \documentclass{article} \usepackage[backend=biber,dateabbrev=false]{biblatex} ...
3
votes
0answers
104 views

Alternative text for Javascript (form) boxes for viewers that don't support Javascript?

I am using the tdclock package to display the current date and time. In looks pretty good in acrobat, but in other viewers (like Evince) it looks terrible because they don't support Javascripts and ...
3
votes
1answer
195 views

How to use \date{\today} without using \maketitle?

I am making my own title page. I'd like Latex to display the date automatically using \date{\today} but this does not work, since I am not doing \maketitle So instead of setting the date manually ...
2
votes
1answer
93 views

Biblatex: Date-Fields B.C.

If I wanted to quote a book written 45 B.C. - how would I have to enter the year in fields like origyear or year to cite (and list it in the bibliography) accordingly? Using the authoryear-style …
4
votes
1answer
312 views

Problem with boxes in tdclock

I have problem with tdclock. In one post I saw, it can be removed by some commands. Can anyone help me how to do that. Do I need to put those commands in CMD or some other? Please help me.
1
vote
1answer
72 views

Lost my title page, author and date

I remember when I did type in LaTex before it would give me a front page to the document which said Title and a date.. Now it just begins right from the document body itself. No Author, No date, No ...
18
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
156 views

How to change date format to German?

I use the \today comment, then it produces den 26th February. However I want den 26ten Februar. How can I change that?
4
votes
1answer
66 views

Memoir class conflict with datetime

Hi I'm running into a warning when trying to call the datetime package within a document using the memoir class. MWE is: \documentclass{memoir} \usepackage{datetime} \begin{document} Hello World ...
0
votes
3answers
143 views

how to autoupdate date on beamer pdf

It is not uncommon (at least for me ) to compile pdf a day before. It is also not uncommon to use same pdf on some other day. So it would be handy if pdf produced displays the system date on which it ...
5
votes
2answers
139 views

How can I display date information in document class “amsproc”?

I tried to display the date information by the command \date{June, 2013} in document class "amsproc", but failed. How to fix this problem? Here is my LaTeX code: \documentclass{amsproc} ...
0
votes
1answer
87 views

The date doesn't appear properly in the \date{} command

Instead of using \today , I have used \date{} command to specify another date.But it doesn't appear , it generates some other output like "[3cm]" in the place of date.Here is the title page's code: ...
9
votes
1answer
115 views

Save a time for later use

In the datetime package, we have the command \newdate which allows you to save a date for later use. In the same line, without thinking much, I tried to use: \newtime{examstart}{09}{00} and was ...
3
votes
1answer
82 views

How can I date my entries into a latex document? (Not just one date, but several dates)

I know the \date command inserts a date in the title, but as I keep working on this document of mine I want to be able to keep a record of what I wrote on each day. I've been simply writing the date ...
6
votes
1answer
136 views

Graph with date x-axis: How to show non-military time?

Sample code: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \pagestyle{empty} \usepgfplotslibrary{dateplot} \begin{document} % requires \usepgfplotslibrary{dateplot} ! ...
5
votes
1answer
101 views

how to get the current month in two languages?

from time to time, a current month value has to be updated. it is a din a4 page, which includes german and english text. at the end of the page, only the month and year (without a day) is given. ...
29
votes
3answers
3k views

Date format: YYYY-MM-DD

Currently I put the date in my document using: \date{\today} How do I display the date in the YYYY-MM-DD format?
3
votes
0answers
51 views

advdate and skip dates based on holidays

I am following up from the question here. My main purpose is to write a syllabus and schedule for a class that meets only on certain days of the week accounting for some holidays. In this question, I ...
2
votes
1answer
255 views

advancedate and ifthenelse in latex

I am trying to write a course syllabus for a class that meets only certain days of the week (M, W). I want to check the day of the class and advance it by 2 days or 5 days depending on the day. The ...