{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

1
vote
3answers
63 views

Create custom date command using numbers

Is there any way to create a custom command that prints the date (using the language specified in babel to be possible) from a given ISO 8601-formatted date? What I would like is that \today ...
4
votes
2answers
51 views

Omit the date in \maketitle *without blanking the date*

So, this is building on Omitting the date when using \maketitle; but I'd still like to include the date in the page footer. This means \date{} isn't an option. (Of course, I'd like to get rid of the ...
4
votes
1answer
36 views

Replicate behavior from datetime package with datetime2 package

The datetime package is now obsolete and I would like to switch to the newer datetime2 pacakge, but I am having trouble recreating the behavior that I used the datetime package for. The following MWE ...
4
votes
1answer
124 views

How to create a date and time plot with TikZ and pgfplots

What I want to achieve is a graph, which shows the working hours per day. Input should be the triple of date, arrival time and leaving time. The x-axis holds the dates and the y-axis shows the working ...
3
votes
1answer
21 views

How to add a date into the name field of includepdf?

I'm using Sweave to automate the creation of a report, and I want to include a PDF into my document, but the PDF and its name are updated daily (because they are produced using Sweave). For example ...
2
votes
2answers
72 views

Date Calculations (output should be the fixed day of the month)

I'm building a LaTeX document that already got the date from other files. The date showed as 23 November 2015 as the example (by \today). Then I need to output another date related to this original ...
1
vote
1answer
29 views

Conflict between polyglossia and datetime package

The goal of my document is to have a date in the following format <AAAA> <month> le <JJ>, so I use the following code: \documentclass[a4paper,12pt,oneside]{article} ...
3
votes
1answer
24 views

Package tracklang Error: Dialect `iso' is not predefined

I added the package datetime2 so i could write out the todays time in the ISO standard. \usepackage[iso]{datetime2} I get a error saying that iso is not predefined. datetime2.sty 159 Package ...
9
votes
2answers
265 views

Change month names in \today command

The \today command will print the Latin name of the month with the nynorsk language option. I would like to change this by using the more traditional (and still very commonly used in speech) system of ...
2
votes
1answer
50 views

How to make a new date format with abbreviated names of months with the datetime package?

I am looking to save and re-use dates which needs to be displayed in a format such as Oct. 25. How do I do that please? I read the documentation in datetime package. They do have shortmonthname ...
1
vote
0answers
29 views

How to write today's date which does not change afterwards? [duplicate]

In latex, the command \today displays today's date. Consider that I write something like: Updated news: \today. It appears like Updated news: Saturday, October 24, 2015 After a while, when I ...
0
votes
1answer
72 views

biblatex show urldate as full date

I am trying to use biblatex to format the reference to print the urldate in long form (Australian order) to match my universities style guide. I modified all the other fields using biblatex.cfg I ...
2
votes
0answers
49 views

Increasing datetime resolution, to be used for log files

I have some log files with a full time stamp like this: time value 2015-10-15 13:16:48.019901 56 2015-10-15 13:16:48.066701 53 2015-10-15 13:16:48.097900 57 2015-10-15 13:16:51.126281 61 ...
7
votes
3answers
362 views

How do I insert yesterdays date instead of today? [duplicate]

I usually generate a report for the previous day (as I imagine isn't all too uncommon) and so I'd like to date it with yesterday's date instead of today. Currently I have: \title{foo} \date{\today} ...
1
vote
1answer
54 views

Fixed date without maketitle

begin{document} \pagenumbering{roman} \begin{titlepage} \begin{center} \includegraphics[scale=0.8]{logo}\\[0.9cm] {\huge title...... \\} \vspace{1.5cm} ...
1
vote
1answer
155 views

XY plot from date/time data table using pgfplots

I have a dataset in the format shown below, which I have exported from R using export.table() function. I want to make an XY plot using pgfplots, where x=time, and y=value, and the points are ...
2
votes
1answer
78 views

AMSART: Including two dates

In amsart, how do you include two dates (in the footnotes)? Specifically, another one (displayed after the label Last update) in addition to the default one (\date), with the same options. ...
2
votes
1answer
59 views

Create sequence of dates in a table

I would like to create a sequence of dates with weekly increments, which should be shown in a table environment. I've been fiddling around with a code snippet posted in this forum (Generate a ...
8
votes
1answer
214 views

How to get automatic date generated in a LaTeX file?

I tried using the datetime package, but it doesn't display the date in the format I want. What I would like is something like August 30, 2015. How do I do this?
3
votes
1answer
20 views

How can I eliminate spurious spacing using datetime with a modified .def?

I am trying to construct a corrected version of dt-welsh.def for use with the datetime package. In part, this is because my existing set up depends on datetime and, in part, it is because datetime2 is ...
6
votes
1answer
63 views

Allow line breaks in date ranges?

Code: \documentclass[10pt,paper=14.8cm:21cm,BCOR=10mm,DIV=12,parskip=half] {scrbook} \usepackage[T1]{fontenc} \usepackage[german]{babel} \usepackage[utf8]{inputenc} \begin{document} Markus hat den ...
2
votes
1answer
72 views

Selectively citing full month name with biblatex-ieee?

Consider this MWE: \documentclass{article} \usepackage[ bibencoding=utf8, backend=biber, natbib, style=ieee, % this abbreviates month always! dateabbrev=true, % but this (alone) seems to ...
5
votes
2answers
89 views

Does termcal work with datetime?

I'm using both datetime and termcal together in a document, but this seems to cause an error. \documentclass[12pt,letterpaper]{article} \usepackage{datetime,termcal} \begin{document} ...
0
votes
0answers
39 views

\texorpdfstring and \today

I was trying to put multiple author names in a beamer slide using \titlepage. I came across Beamer - Multiple Authors - Formatting the title page, which help me a lot. However, I couldn't understand ...
1
vote
1answer
60 views

How should multiple time formats be used?

I want to have a command to display the current time in a few different formats, specifically, the following: 2015-05-15 15 May 2015 122200 2015-05-15T122200 I'm not sure how to do this properly ...
4
votes
1answer
122 views

paper - abstract - manually change the date

In my paper I have a sole page for the abstract. There I state the title of my paper, my name and the abstract. However, it marks also the date. As it marks the actual (today) date, I'd like to know ...
1
vote
0answers
105 views

xelatex problem with datetime

I have a datetime problem if I try to compile my latex file. It is something with datetime, but I cant figured it out, what it is. I have append the log How Can solve the problem of solving the ...
4
votes
1answer
63 views

Australian date formatting with Biblatex and APA style?

In my references I'd like my dates to be written as "day month year". I've been able to achieve this following the top answer here Formatting dates “day month year” with biblatex. However, as soon as ...
34
votes
7answers
2k views

Generate analog clock with numbered face, add seconds, Roman numerals

Looking at the excellent answers here, I can't help wondering how I can accomplish two apparently simple modifications: I wanted to be able to generate a traditional Roman-number clock; It would be ...
3
votes
1answer
240 views

Equivalent of `newdateformat` in `datetime2`?

The datetime package has recently been withdrawn and replaced by datetime2. Any idea for the equivalent of newdateformat in datetime2 ?
1
vote
1answer
81 views

Generate a sequence of dates in LaTeX

In LaTeX, I'd like to generate a sequence of dates, which repeats on Monday and Wednesday every week. The sequence should look like: Mon 3/30 Wed 4/1 Mon 4/6 Wed 4/8 ... I have tried to use the ...
2
votes
0answers
53 views

Is there a time field where I can fill in the time I want? [closed]

I am going to add a web page to the bibliography, and therefore I need to add the time. I did not add the web page in latex when I got it from the web, so I need to add the time I actually used the ...
6
votes
1answer
203 views

Insert arbitrary date

I want to simply insert an arbitrary date (in my case March 16, 2015) in a way that does not hard code the date format. That is, I want something like \insertdate{<year}{<month>}{day} For ...
1
vote
1answer
215 views

How to get pgfgantt today to be set to the \today macro

I want the pgfgantt chart to automatically update the "today" line so that it always shows \today when compiled. The problem is that though I am using time slot format=isodate and have set the ...
11
votes
1answer
688 views

ISO Date format with Biblatex/Biber?

I'm using biblatex/biber with the biblatex-chem package to make a list of citations for group meeting. This works quite well, but I wanted to add a recent C&EN article to it, since it is quite ...
1
vote
0answers
50 views

TeX yells at me that the `xxivtime` option in `datetime` can't be found, but it's there

I've been using \usepackage[ddmmyyyy,xxivtime]{datetime} to timestamp compilations of a document somewhat longer than this one: \documentclass{article} \usepackage[ddmmyyyy,xxivtime]{datetime} ...
3
votes
2answers
1k views

bibtex - Change format of urldate

I have the problem that I use the citation manager Citavi and it can only export in the format urldate = {dd.mm.yyyy}. However Bibtex needs the format urldate = {yyyy-mm-dd}. It is not really ...
3
votes
2answers
151 views

package [datetime] not working with [titling]

Below is an SSCCE: \documentclass{report} \usepackage{datetime} %\usepackage{titling} %if this line is uncommented compilation fails \begin{document} \newdate{date2}{08}{02}{2015} ...
6
votes
2answers
160 views

How should I parse an ISO date in expl3?

Assuming date is ISO-formatted (YYYY-MM-DD), how can I parse out its individual parts into variables? \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \int_new:N \mytest_date_day_int ...
2
votes
1answer
95 views

Dynamic date in section and TOC

I am trying to dynamically insert a custom date within a section title like so: (somewhere in preamble): \newdate{prevdate}{14}{01}{2015} \date{\displaydate{prevdate}} (somewhere in document): ...
1
vote
1answer
57 views

how to insert the date (today) in the middle of a document

So the question is simple: Instead of having the date in the title, how do you manage to put the current date in the middle of the text, within the document? Thanks
10
votes
3answers
2k views

How do I print out dates in YYYY-MMM-DD format?

Is there an easy way to print out dates in the format of 2014-Jan-15. Being in North America, Canada not the USA, there are too many date formats in use. To remove any chance of confusion the ...
0
votes
2answers
93 views

Problem with nodate and date sorting in author-date biblatex

I have problems (1) nodate, and as a result with (2) datesorting with biblatex 2.9a, Biber 1.8, pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex) (1) nodate I cannot ...
4
votes
1answer
124 views

Calculations with dates

I want to make a table where I describe every week some facts, in two specific days. These days are fixed in the table, but they are selected arbitrarily. I would like to print the dates of each date ...
6
votes
1answer
272 views

How to add and subtract hours and minutes

Is there a package which adds and subtracts hours and minutes. I mean, I would like to define \newcommand{\time}{10:00} and use it in the document as \time + 00:20 = 10:20 \time + 01:30 = 11:30 My ...
4
votes
1answer
118 views

Using currfile and Datetime to format a diary page

To create something like a diary, I am using a number of input files within 2 directories a MONTH directory named 01-12 and a day directory within each month...01-31 so 12/ (December) which has a ...
5
votes
2answers
187 views

datetime: date without year

This question is similar to Format date without year, but I can't deduce the answers. I would like to delete the year in a date, \documentclass{article} \usepackage[spanish,mexico]{babel} ...
3
votes
1answer
74 views

Why does \the\day not work in my macro?

(TeX-Code!) I have defined a TeX-macro to compare date and time values. Everything works well, until I put in \the\day, to call the current value of it. Can someone imagine, why this works with all ...
5
votes
1answer
333 views

The first 9 days of the month as a string

Is there a way to show the first 9 days of the month as 01, 02, 03 etc. \the\day prints 1, 2, 3 etc.
4
votes
2answers
78 views

How can I keep a cellcontent static?

I have defined a TeX-macro to compare date and time information. Within a single box, there is no problem, but if used in a table, in different columns or lines, as shown below, the result is 0. ...