Questions tagged [date]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11
votes
2answers
571 views

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

I'm looking for a package, or even a macro that allows me to simply write duration calculations for young students. Like for example this (Lebossé-Hemery 1957 classe de sixième): I prefer this ...
10
votes
2answers
236 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 ...
10
votes
1answer
124 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} ...
7
votes
1answer
518 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 ...
7
votes
2answers
257 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, ...
6
votes
1answer
744 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 ...
6
votes
1answer
7k 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 \\ ...
5
votes
1answer
445 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} \...
5
votes
1answer
762 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 ) ...
5
votes
2answers
237 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 ...
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 \...
5
votes
1answer
1k 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 ...
5
votes
1answer
87 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{...
5
votes
1answer
57 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 ...
4
votes
2answers
171 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 ...
4
votes
1answer
79 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
4
votes
2answers
1k 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 ...
4
votes
2answers
164 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 ...
4
votes
1answer
102 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} \...
4
votes
1answer
69 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. ...
4
votes
1answer
105 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 ...
4
votes
2answers
103 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 ...
4
votes
0answers
153 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) ...
4
votes
0answers
813 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} \...
3
votes
3answers
515 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 ...
3
votes
1answer
313 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} \...
3
votes
1answer
93 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,...
3
votes
2answers
88 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 ...
3
votes
3answers
185 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\...
3
votes
1answer
52 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'...
3
votes
1answer
283 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 ...
3
votes
1answer
130 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 ...
3
votes
0answers
132 views

Biblatex : date range inherited from parent with crossref [closed]

In the following example, the @article inherits its date from the @mvbook, but doesn't display the range correctly (cf. screenshot). If I remove {date=1983} from the @article in my .bib file, the ...
2
votes
4answers
11k views

Latex convert Date string format from mm/dd/yyyyy to dd/MM/yyyy

I want to change date format for date string Ex. /changeformat{'06/23/2016'} and result = 23 June 2016
2
votes
3answers
264 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 ...
2
votes
1answer
300 views

How to drop “st”, “nd”, and “th” from the default date format in British English in bibliography with babel+biber+biblatex?

According to Cambridge Grammar, the most common way of writing dates is as follows: 20 January 1993 and not 20th January 1993 However, the "th" is still produced by biber+biblatex by default: ...
2
votes
1answer
180 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 ...
2
votes
1answer
25 views

Why does the `date=terse` option to biblatex cause an extra space after the year in bibliography entries?

Compiling my MWE with the date=terse option to biblatex causes an extra space between the last digit in the year and the closing parenthesis. Commenting this option removes the extra space. How do I ...
2
votes
1answer
29 views

Convert dayofweek to number

Texmaker, how i can change dayofweek of filecontent to diplay number: Monday = 2, Tuesday = 3...Saturday = 7, Sunday = 1 My code \documentclass{article} \usepackage{filecontents} \begin{...
2
votes
1answer
225 views

How to do recursive program with latex

I am trying to make a schedule for two groups of people who will watch the same experimental lectures at the same laboratory in different dates. I need to skip the holidays. I intend to get something ...
2
votes
1answer
1k 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.
2
votes
2answers
5k 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 ...
2
votes
1answer
66 views

Timestamps on video references in biblatex/biber

Is there an easy way to get biblatex/biber to output the date field to include the time? I'm using @video (and @photo) which, as far as I can tell, lack drivers by default and so fall back to ...
2
votes
1answer
402 views

Setting the position of date on title page

I am new using LaTeX and am therefore copy pasting a lot of packages and template into my LaTex. I am having an issue with the year on my title page. I need it to be below the department and not at ...
2
votes
1answer
183 views

How to redefine \the\year

I used \the\year many times on a template. So when I compile the document, the current year is used. The problem is that I created many documents last year, in 2017, and now I have to fix some small ...
2
votes
1answer
170 views

How to change the label “Date:” before the date in amsart class?

I am already using the package babel with the option brazil, which prints, for example, "Proof" as "Demonstração". But the label "Date:", before the date of the document, remains in english. I would ...
2
votes
1answer
101 views

Period at the end of date in AMSart

How ca I suppress the period at the end auf the date string in amsart? It is formatted as, e.g. 08. August 2016.; but there should be no period after 2016. The example code: %% \documentclass{amsart}...
2
votes
1answer
37 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 ...
2
votes
1answer
70 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 ...
2
votes
1answer
27 views

Page numbering affected by recursive programming

I asked this question How to do recursive program with latex and got the following excellent answer by @JosephWright \documentclass{article} \usepackage{advdate} % Set the first practice date \...