Questions tagged [date]

For questions related to dates in various sections of a document, bibliography, or related.

Filter by
Sorted by
Tagged with
16 votes
2 answers
20k views

How to (manually) set the date in a letter?

I'm trying to start writing letters with Latex, starting with the letter document class: \documentclass{letter} \usepackage{hyperref} \signature{Joe Bloggs} \address{21 Bridge Street \\ Smallville \\ ...
nutty about natty's user avatar
12 votes
2 answers
2k views

Is there a package that allows to write correctly times in hours, minutes and seconds in mathematical mode?

This question is followed by this one: Is it possible to adapt a duration calculation macro to use it in a foreach loop? I'm looking for a package, or even a macro that allows me to simply write ...
AndréC's user avatar
  • 23.5k
10 votes
2 answers
683 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 ...
Dave's user avatar
  • 3,608
10 votes
1 answer
225 views

Incomprehensible error with babel and isodate

The error in question is: ! Undefined control sequence. \ifthenelse #1#2#3->\let \bbl@temp@pref \pageref \let \pageref \org@pageref ... l.19 \date{\today} ...
Kile Kasmir Asmussen's user avatar
9 votes
1 answer
756 views

Is the month field really deprecated?

Jabref 3.8.2 has a tab with Deprecated fields including the field Month. The Biblatex documentation 3.12 still describes the field month and I could not find a sign of deprecation: Was it wrong by ...
Jonas Stein's user avatar
  • 8,479
7 votes
1 answer
2k views

Give date as iso format

Currently, when I use \date{} for an old document, I put the explicit form of the date. But this is a problem because I print all my documents in two versions, a personal version (with the form ) ...
fauve's user avatar
  • 2,233
7 votes
2 answers
894 views

Next Wednesday's date

Each week I prepare notes in TeX for a Wednesday class. Mostly I prepare the notes a couple of days before. Often the notes are copied and modified from previous notes. I add the date to the notes ...
badroit's user avatar
  • 7,437
7 votes
2 answers
5k 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 \...
FranzHuber23's user avatar
7 votes
1 answer
397 views

Online sources without "last edited" date field

My university requires online sources to include three different dates per entry: Date of original publication Date of last edit date of visiting the website Well, the first and third date are easy, ...
thymaro's user avatar
  • 1,485
6 votes
1 answer
2k views

How to redefine the \today with superscript?

How can I redefine \today so that today's current date comes in the format May 26th, 2016 I need the "th" to be superscript. It should come to the bottom right corner of the page. The code does not ...
Curi0usM3's user avatar
  • 143
6 votes
2 answers
235 views

How to Extract the Three First Letters of Current Month in French without Accented Characters?

Is there a way to extract the 3 first letters of the current month in French but WITHOUT acented characters AND with the first letter capitalized - e.g. Fev for Février (February in english) - AND ...
SylvainRigal's user avatar
6 votes
2 answers
264 views

Expand \today in custom format

I want to fill in an already printed form. The form has boxes to write down current date. How can I expand current date so that it look like 1 4 0 2 2 0 2 2 with a space between the digits
Vaibhav's user avatar
  • 6,435
5 votes
1 answer
788 views

\date{} doesn't work with new update

When I use \date{} with the recent updates, see example below: \begin{document} \title{Mathematics of Finance 2} \author{Daniel Royer\\ Geneva Business School\\February 2018} \date{February 2018} \...
Daniel Royer's user avatar
5 votes
3 answers
219 views

Why can't this code successfully parse the date string?

As an attempt to practice with expl3, I am trying to parse numerical date string to French. There is a \mymodule_display_date_year_month_day:n which receives a string of form yyyy-mm-dd (or yyyy-mm or ...
Jinwen's user avatar
  • 7,462
5 votes
2 answers
3k views

Date format (in bib entry) / bibelatex biber

I'm using biber and biblatex and I wanna print all thesis prior to 2013. When I use year = {2010} entry in the .bib file, every think works fine. However, if I use date = {2010-11-25} instead of ...
rasha's user avatar
  • 704
5 votes
2 answers
13k views

How can I write the date in french?

I use the following command: \documentclass[a4paper,11pt]{article} \usepackage[francais]{babel} but the date is just shown as "16 fvrier 2017" missing a "é", I wonder how should I deal with this ...
Victor Chen's user avatar
5 votes
1 answer
2k views

moderncv date year on top month

I am using the moderncv package to write my CV. If I put a date in a long format like this: September 2014 - February 2015 the first column will be to wide to put enough content in the CV. I have ...
Max's user avatar
  • 225
5 votes
1 answer
112 views

How to get (ancient) dates with `beforechrist`localisation?

I would like to get the date(era) of this MWE \documentclass{article} \usepackage{filecontents} \usepackage[ backend=biber, style = archaeologie, ]{biblatex} \addbibresource{\jobname.bib} \begin{...
lukascbossert's user avatar
5 votes
1 answer
90 views

Using the document title to get the correct date

I create a lot of handouts and the like for my students using LaTeX. I find that I forget to update the date field, and so I often give out handouts with the incorrect date on the top. This is a bit ...
James's user avatar
  • 187
5 votes
2 answers
248 views

Get Weekdayname from custom date

I'm new to LaTeX and need help. I want to convert a input of this date format: 20161027 to this output: "Thursday, 27.10.2016" I tried around with the packages xstring and datenumber. The following ...
crss's user avatar
  • 51
4 votes
2 answers
341 views

Get date elements as strings

I want to know if there is a way to get the date elements (year, month, day, hour, minute, second) in order to create a lucky of version number that automatically increments. For example if now it is ...
user171780's user avatar
4 votes
2 answers
426 views

Raw format of \pdfcreationdate?

MWE: \documentclass{article} \begin{document} \pdfcreationdate % LuaLaTeX: {\pdffeedback creationdate} \end{document} The above prints a string like this (I am in Pacific Standard time zone, which ...
user avatar
4 votes
1 answer
325 views

How to print tomorrow's date in ConTeXt?

I often have to display the date in ConTeXt, but not for today, as displayed with \date, but for the next day. How to print tomorrow's date instead? E.g. August 7, 2019
Village's user avatar
  • 13.2k
4 votes
2 answers
206 views

Localized date ranges

biblatex (with biber) supports all kinds of date information, including ranges. Dates follow ISO 8601, which is great, and they are localized (plays nice with babel). I would like to get localized ...
Pedro Tiago Martins's user avatar
4 votes
3 answers
167 views

How to insert the next month, like /today?

I'd like to create a command that would insert the next month (in relation to the current one), like so: \command -> November analogously to \today. The command cannot be hardcoded, as the ...
Zubo's user avatar
  • 582
4 votes
2 answers
285 views

How to use `\monthiname`, `\monthiiname`, ... commands from `babel`?

Within the babel package, for each language, the month names are already defined as \month<roman number>name commands. I was looking then for a solution that would provide me with the month ...
mhavel's user avatar
  • 151
4 votes
1 answer
174 views

Bibliography: How can I use a date in any field?

Sometimes I would like to use a date in \titleaddon or any field, but neither \printdate nor \bibdate nor \mkbibdate ... works, though I've loaded isodate. \documentclass{scrartcl} \usepackage{etex} \...
Alexander Wittmann's user avatar
4 votes
1 answer
130 views

Store \today value with \DTMsavedate

Goal With datetime2 package I try to save the “\today” date with \DTMdatesave command, but it successively fail. My tries 1. The dumb method I began with the most evident way. Putting directly \today ...
fauve's user avatar
  • 2,233
4 votes
1 answer
120 views

Extra space in \today command with polyglossia

Compiling with polyglossia, there's extra space before the year in the \today command: \documentclass{article} \usepackage{polyglossia} \setdefaultlanguage{norsk} \begin{document} \today 7. ...
Sverre's user avatar
  • 20.3k
4 votes
1 answer
128 views

Happy Pi day to applied scientists!

Happy Pi day to all non-American applied mathematicians and scientists (like me) who make approximations! This is in fact TeX related as I have a question, or perhaps a puzzle. How would I make the ...
GeoffV's user avatar
  • 814
4 votes
0 answers
297 views

XeLaTeX version of \pdfinfoomitdate (or method to accomplish the same)?

According to: Can I suppress Date Created metadata field in output of pdflatex? and Reproducible LaTeX builds - compile to a file which always hashes to the same value pdfTeX (versions ≥1.40.17) ...
whatisit's user avatar
  • 1,830
4 votes
0 answers
2k views

\date does not work [duplicate]

I've got this .tex file \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{graphicx} \usepackage{fancyhdr} \usepackage{here} \usepackage{fancyhdr} \pagestyle{fancy} \...
anonymous's user avatar
  • 327
3 votes
3 answers
789 views

Edit \today in such a way that it displays 1st/2nd/3rd/4th, etc. Month Year

I have found questions where \today has been edited – but in such a way which I do not want to have. Yet, I do not know how to programme it. If I write \today, I do not want to see something like ...
Nemgathos's user avatar
  • 545
3 votes
3 answers
380 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 ...
Jay Laone's user avatar
3 votes
2 answers
241 views

How to override \today in a letter?

Im trying to write a letter with the next code \documentclass{letter} \signature{Your name} \address{Street \\ City \\ Country} \begin{document} \begin{letter}{Company name \\ Street\\ City\\ Country} ...
riccs_0x's user avatar
  • 1,087
3 votes
1 answer
153 views

BibLaTeX entry year or date with text in it? The need to avoid a warning

Is there a way to use the bibentry for year or date with for example date = {Around 171} or year = {Around 171} if the year and date of the work is historically not exactly known and to be precise ...
Thomkrates's user avatar
3 votes
1 answer
130 views

Formatted date via directlua

I would like to get today's date formatted using \directlua. The % signs seem to be a problem. And I don't know how to get it to work. Both attempts in the following example throw errors: \...
FlorianL's user avatar
  • 1,629
3 votes
1 answer
2k views

\date doesn't show date

My LaTeX code is \documentclass[12pt]{article} \usepackage[margin=1in]{geometry} \usepackage{amsfonts, amsmath, amssymb} \usepackage[none]{hyphenat} \usepackage{fancyhdr} \usepackage{graphicx} \...
GoingMyWay's user avatar
3 votes
1 answer
1k views

How to to add “th” or “rd” to the date

Hi this is the preamble I have used \documentclass[prd,aps,superscriptaddress,twocolumn,10pt]{revtex4-1} \usepackage{times} \usepackage[a4paper, left=1.85cm, right=1.85cm,...
Cinna's user avatar
  • 55
3 votes
1 answer
376 views

hyperref: Token not allowed in a PDF string (PDFDocEncoding): (Not duplicate) how to include date \today?

I have been away of Beamer for a few years and I am coming back to my old notes (samples of code) that I put together and build a few new presentations. While I was compiling the code I got the ...
Thanos's user avatar
  • 1,113
3 votes
1 answer
3k views

How to set the date in beamer notes?

Is there a way to set an specific date (e.g. the presentation date) in beamer's notes? Using \date{some date} has no effect in the notes. Only the compilation date is shown. Thanks.
Jander's user avatar
  • 942
3 votes
1 answer
178 views

biblatex: automatically abbreviate year ranges

For consistency's sake I need to abbreviate all number-ranges in my document. While biblatex can easily be made to abbreviate page ranges the equivalent command for the year ranges breaks compilation ...
Florian's user avatar
  • 2,899
3 votes
3 answers
509 views

How to compare a date with a set of dates

I am creating a schedule for weekly lectures using the following code \documentclass{article} \usepackage{advdate} %... Set the first lecture date \ThisYear{2019} \ThisMonth{3} \ThisDay{1} \newif\...
Brasil's user avatar
  • 1,246
3 votes
1 answer
619 views

Using apa6, how do I get the date to appear on the title page after the authors

I've tried using: \data{\today} but no date is printed on the title page. The only way I can get a date on the title page is by putting \today between the \begin{document} and \maketitle, i.e.: \...
Allan Moser's user avatar
3 votes
1 answer
164 views

How to reference bi-monthly journal in biblatex

The biblatex manual states one can't reference a month range (e.g. "Jan-Feb") under month, but to use date instead for establishing date ranges. The table with example date formats in the manual doesn'...
useranonis's user avatar
3 votes
1 answer
676 views

dd.mm.yyyy date formatting in BibLaTeX

So this might be a bit specific of a question, but I need BibLaTeX to output dates in the long DMY format - dd.mm.yyyy that is. BibLaTeX documentation states that one can achieve dd/mm/yyyy by using ...
Joni Niskanen's user avatar
3 votes
1 answer
1k views

ISO Date Format

I have done a search on this forum and on the internet and have not found the answer to my question. I am looking to use an ISO date format such as 2018W083 for today (2018-02-21) in my reports. I use ...
Joe Ciras's user avatar
  • 127
3 votes
1 answer
275 views

Arbitrary date with polyglossia for localisation formatting

I want to be able to define a variable of an arbitrary date and print it in different languages. And since polyglossia automatically formats the \today date, I am sure this can be achieved with it. I ...
Vid Merljak's user avatar
3 votes
1 answer
341 views

How to print complete date field in biblatex-chicago?

I'm trying to to get biblatex-chicago to print out some nonstandard date formats as I've written them in Zotero before exporting to a .bib file: 1971 (2006) 2016a 2016b Originally Zotero exported ...
christopher's user avatar
3 votes
1 answer
463 views

How to format \today to the 'DD MMM YYYY' format?

Can anyone tell me how to format \today to 'DD MMM YYYY' format? Something that gives '10 Jun 2021' would be ideal but I can work with '10 JUN 2021'. I have looked in all the suggested answers but ...
Bob Macrae's user avatar