Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [datetime]

{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.

1
vote
1answer
25 views

pgfplots: How to force datetime to only display xticks with even times (18:00) instead of odd times (18:34)?

Assumed we have the following plot from user darthbith to display a pgfplot with a time axis: Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{...
3
votes
1answer
56 views

pgfplots: How to add time axis as second x-axis?

I preprocessed a series of data into a time column and a further column with time distance to zero, the latter as decimal value. Minimum Working Example (MWE): \documentclass[border=5mm]{standalone} ...
2
votes
2answers
50 views

Define cover colors based on current month

I am writing a style guide documentation and I want to make visually appealing what the document was updated using the cover color. The main idea is to automatically update cover color based on the ...
2
votes
1answer
57 views

advancing dates in a 3-day syllabus

I am trying to adapt this advance date method for a 3-day syllabus without success. The goal is to create a M-W-F class schedule. The method in the link above is for a two-day schedule. It takes the ...
6
votes
1answer
491 views

Adding clock-time at bottom left of every page

How can I add a time-stamp of the time of compilation of the latex document (day, and clock-time in the form of HH:MM:SS) at the bottom left corner of every page, below the contents of the document?
0
votes
0answers
44 views

Twice a week syllabus

I was trying to adapt the following code from three-times a week to two-times a week, unsuccessfully. Also, I want to change the date format so that it shows: Mon Jan 28. Any help appreciated. \...
2
votes
1answer
34 views

How to get the last two digits of next year?

It seems I can't solve the problem by google. I want to get the last two digits of the next year. I googled that the two digits of this year can be get by \Year{\the\year} \def\Year#1{\def\yy@##1##2##...
2
votes
1answer
50 views

Tag \today in different countries

I would like to know if it is possible to specify another country than my home country as the reference for the tag \today. I need to submit works in a different time zone so when I submit it, ...
2
votes
2answers
103 views

How do I get \today to display today's date as 14-Sep-2018?

What I'm getting now from \today is: 14th September 2018 How do I change it to: 14-Sep-2018
7
votes
1answer
71 views

Day and Month instead of page numbering

I am writing a personal one year diary of 365 pages in LaTeX. I would use as page numbering day+month and not numbers, so: The first page number is not 1, but 1 Jan... Page number 32 is not 32, but 1 ...
10
votes
2answers
183 views

How to calculate future dates based on custom date (e.g. 2018-05-05 + 14 days)?

I want to create invoices for customers in scrlttr2. Hereby I set the document date via \setkomavar{date}{\today}. I reuse this date with advdate to automatically add a payment deadline into the ...
0
votes
1answer
160 views

Gantt chart with milliseconds as input

I want to create a diagram very similar to a Gantt chart. But it is in face run times from a workflow execution and they can be from milliseconds up to weeks... I am looking at pgfgant but I am not ...
1
vote
2answers
78 views

How to get the datetime2 package to display dates in South African format: “1 April 2018”

By default Latex formats the date as mmm d, yyyy, i.e. in the nonsensical middle endian format. I would like to display it as d Mmm yyyy, e.g. 1 April 2018. I've gone through the datetime2 ...
2
votes
1answer
52 views

How to have a date axis and a “normal” one linked on a plot?

I am plotting some date-based data with pgfplots where the date is on the x axis, which works so far (see MWE below). However, I would like to have a second x axis which is linked to the first one ...
1
vote
1answer
81 views

\formatdate withouth day

I frequently use the \formatdate{01}{02}{2016} command to get a result like Now I need the same thing, but without the day. I just need the month and year. Unfortunately, the \formatdate command ...
1
vote
1answer
106 views

Change date format

How can I display certain dates as 2000/12 instead of 30. Dezember 2000 \documentclass{article} \usepackage{datetime2} \begin{document} \DTMdate{2000-12-30} %Prints as expected: 30. Dezember 2000 ...
3
votes
2answers
276 views

How to change the language of datetime?

Сondition to change language of the month on titlepage doesn't work. How to write condition to activate russian or english date depending on the choice? XeLaTeX is used. My code doesn't work. MWE: ...
1
vote
1answer
123 views

Dateplot doesn't work if xmin/xmax are specified

Here is a simple datafile data.csv: Time,Value "2017-01-31 12:51:05",500 "2017-01-31 12:51:05",820 "2017-01-31 13:48:14",820 "2017-01-31 13:48:14",500 Here is a simple plot of it: \documentclass[...
2
votes
3answers
227 views

Command for today's date in two specific formats (12 Dec 17 and 12 December 2017)

I want to be able to just type either the short version or long version by a command, like \longtoday and \shorttoday. Some more examples of short dates are 12 May 17 and 01 Jan 07, long dates are the ...
1
vote
1answer
262 views

Equivalent of \today in org mode

Is there any equivalent of \today in org mode which auto updates whenever the document is exported and can be inserted anywhere in text?
3
votes
1answer
45 views

Is there a way to incrementally generate start and end times for e.g. a presentation schedule

I looking for a way to automate some of the work behind setting up single-day schedules. The final outcome I am looking for is something along the lines: | Time | Presenter | --------------...
1
vote
1answer
153 views

Concatenate string and `\today` macro

I'd like to use the \today command within a pathname. \usepackage{graphicx} \usepackage[iso]{datetime} \graphicspath{{./Figures_\today/}} This should point to ./Figures_2017-11-13/ What is the ...
3
votes
2answers
673 views

Special date and time format using datetime package

Is it possible to have datetime return the current time and date in the following format? Saturday 25. February 2017, 01:24:01 PM CET.
0
votes
1answer
95 views

Add hh:mm to time for workshop agenda?

I would like to add time, automatically, so that Latex can build a schedule. This is known for dates, but would it be possible that a package exists or something similar for time. \documentclass{...
2
votes
2answers
587 views

Removing the “ARTICLE HISTORY COMPILED (date)” from the latex of my article

I have written my article with a template that was provided by the editor. In this template, whenever you run the latex file, the compiled history will be written. However, now the editor has asked me ...
1
vote
1answer
118 views

How to shade regions corresponding to particular periods of time

I need to plot time data and shade some periods of times like in this graph Is it posible using tikz? Thank you very much Sorry. I forgot to include my figure. Unfortunately "\filldraw[fill=gray!...
5
votes
2answers
253 views

Date(time) ranges using `datetime2`

I would like to use the datetime2 package to format date(time) ranges. For example, \DTMdaterange{2017-08-05}{2017-09-10} would output 2017-08-05/09-10 in ISO format, or something like August 5 to ...
4
votes
1answer
519 views

Add date in output name

pdflatex command allows to specify an output name through --job-name= option. But can't insert the date and time automatically. Emacs could do it: (compile-command "pdflatex --job-name=myoutputname....
2
votes
0answers
44 views

Listing Schedules By Week and by Specific Dates Using `datetime`

I am using datetime to automatically generate a schedule. The MWE at the moment allows me to list weeks (and dates of the beginning and the end of each weak). But I would like to combine this with ...
2
votes
1answer
876 views

How to format \today to DD-MMM-YYYY format?

Anyone know how to format \today to DD-MMM-YYYY format? (Example 01-JAN-2017). Note that it is important that the month is in capital letters. I've tried some available packages, but so far haven't ...
3
votes
1answer
387 views

Pdflatex fails when using datetime package

I have been debugging a class that uses the datetime package. It seems the offending statement is a \RequirePackage{datetime}. It seems that including the datetime package is causing pdflatex to fail....
6
votes
1answer
152 views

converting variable \today to fixed string

I have looked for two days to try to solve this one but there is something I'm missing. My code attached (part of a lesson plan document) has lines to increment the start date from a fixed input ...
4
votes
1answer
264 views

Remove ordinal in dates using datetime

Using datetime package in article class, how can I remove the ordinal (that is, st in 1st, nd in 2nd etc) from British dates, please. Here is a minimal example: \documentclass[12pt]{article} \...
6
votes
1answer
108 views

labelling a timeline with trailing zeros for o'clock

I am making a timeline (spanning hours, not days/years) labelled with digital times (e.g. 1:15, 5:45, 3:00). Everything is calculated based on minutes. The problem I have is the o'clock times, where ...
3
votes
1answer
178 views

Is it possible to change the date(year) in AMS subject classification number in a latex doc.?

I am creating a LaTeX doc. using \documentclass{amsart}. When I run it, the year appears in AMS subject classification is 1991. Is it possible to change it to 2010? Many thanks for your help.
4
votes
1answer
466 views

Custom format for biblatex eventdate with day range

How can I specify a custom date format in biblatex for eventdate in case a range of several days or weeks is specified? Using \thefield{eventday} for example only returns the first day of the range, ...
1
vote
1answer
549 views

Time Series Plot multiple years of data by \month \date

I would like to compare several years of data by month/date on x-axis with just a tick labels being months. Would I call this over plotting? My data would have files for each year of the form: year-...
1
vote
0answers
224 views

Plot time series with PGFPlots and GNUPlot [closed]

I am trying to plot a large time series using PGFPlots, but it takes ages and often crashes with memory error, so I thought to use GNUPlot. This works fine with the same data but with simple ...
1
vote
2answers
599 views

Use swedish format in datetime2

I'm trying to use swedish date format by when using the package datetime2. I have found the following link https://www.ctan.org/pkg/datetime2-swedish but I don't understand how to call for this one. ...
2
votes
3answers
245 views

How do I print dates in latex without defining them first?

I want \date{2015-10-10} to print 10th October, 2015 or similar. I don't want to separate the date value from the place where it is inserted into the document.
5
votes
2answers
2k views

Remove Day Of Week from displayed date

\documentclass{article} \usepackage{datetime} \newdate{date}{19}{09}{2016} \date{\displaydate{date}} \displaydate{date} When I run this it show date with day like: Monday 19th September, 2016. ...
1
vote
4answers
388 views

How to typeset condition to show previous month?

I asked a previous question, which was answered here, which answered my question, exactly as it had been asked. \chead{\ifnum\day < 15 Mid-% \else End-% \fi% \monthname[\the\month]% } ...
1
vote
1answer
135 views

Change the case of datetime2 month return

I'm trying to automate report generation in czech. In english, there is no problem using solution from this thread. Same behaviour is for \monthname command from datetime package. The problem is, ...
1
vote
1answer
97 views

datetime2 define dates “globally” outside of \begin{document}

When using the datetime package, I could define dates "globally" like this: \newdate{sample}{03}{09}{2016} \begin{document} \displaydate{sample} \end{document} Can anyone tell me, how this is ...
5
votes
2answers
2k views

Formatting datetime2 in LaTex to 4th September, 2016 without the current day?

I'm currently using \usepackage[UKenglish]{babel} \usepackage{datetime} and I'm getting Sunday 4th September, 2016 with the commands \today or with \newdate{example}{01}{09}{2016} (outside of \...
3
votes
1answer
115 views

\newcommand for stating middle or end of the month based on compile date

I am new to \LaTeX but am very excited to use it. At work I have a use for it for which it is perfect. Essentially we create the same report twice a month, which up til now has been done manually in ...
3
votes
1answer
516 views

Advdate in tables does not advance date correctly

I am writing a syllabus that has the course schedule in a table. I am using the \AdvanceDate command in the \advdate package to advance the date by two or five days. This works fine outside a table. ...
3
votes
0answers
42 views

Modify \date in aip document class [duplicate]

I am working with a sharelatex template for AIP and use this document class command: \documentclass[% aip, jmp,% amsmath,amssymb, %preprint,% reprint,% %author-year,% %author-numerical,% ]{...
-1
votes
2answers
2k views

how to write datetime in month year format in clean thesis?

I am using clean thesis for writing the thesis. But, I am unable to write datetime in month year format like (August 2016).
2
votes
1answer
237 views

Moving the date in amsart (related to other question)

This question is related to this question here What I want to do is move the date, which is placed at the bottom of front page by amsart package, to the place under author's name, that is, at the top ...