Questions tagged [date]
For questions related to dates in various sections of a document, bibliography, or related.
23
questions
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 \...
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 ...
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 ...
1
vote
1
answer
302
views
When the number of slides of my beamer is more than 10, the date is not displayed correctly in the inferior right corner
When the number of slides of my beamer is more than 10, the date is not displayed correctly in the inferior right corner of my slides.
\documentclass{beamer}
\mode<presentation>
{
\usetheme{...
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 ...
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 ) ...
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 ...
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 ...
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 ...
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 ...
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) ...
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 ...
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 ...
2
votes
1
answer
40
views
How to add parenthesis around the question mark after the date which is uncertain in biblatex?
First a MWS and its output are as follows.
\documentclass[american]{article}
\usepackage[style=authoryear,dateuncertain=true]{biblatex}
\addbibresource{\jobname.bib}
\begin{filecontents*}[overwrite]{\...
2
votes
1
answer
793
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
3
answers
718
views
Changing the date
\documentclass[a4paper,10pt,demo ]{article} %
\usepackage{pifont} %bouni
%-----accent
\usepackage[latin1]{inputenc} %écrire directement les accents et il peut poser des problème
\...
2
votes
1
answer
73
views
Problem with a test in if statement
I'm having trouble with the implementation of a if statement. I want to know if today and five days from now happen in the same month. I get the correct values of the corresponding month to print but ...
2
votes
0
answers
140
views
Why does LuaLaTeX not accept this date format in the PDF file? [closed]
Here's a complete MWE to modify a PDF file and include it in lualatex, which fails:
wget https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf -O dummy.pdf
grep -a Date dummy.pdf
sed ...
1
vote
1
answer
604
views
Change biblatex short date format
I'm writing my document in British English, but live in the Netherlands. In the Netherlands, the short date format is dd-mm-yyyy, as opposed to the British dd/mm/yyyy.
How can I get biblatex to use ...
1
vote
2
answers
10k
views
latex date: month-year only [closed]
In my thesis class file, I currently have
\begin{center}%
\@date%
\end{center}%
Which generates a date in the format day-month-year on the title page.
How do I change this so it only states the ...
0
votes
1
answer
95
views
How to extract year from date in iso 8601 format?
I want to extract the year (or day or month) of a date which is stored as ISO 8601 in a database.
My MWE looks like:
\documentclass{article}
\usepackage{xstring}
\usepackage{datatool}
\newcommand{\...
0
votes
1
answer
123
views
how to get the monday of a years first week?
I would like to get the date of the monday of the first week of a year from only the year
The purpose is a week planner where I put one week on each page and as most of the years first weeks monday is ...
0
votes
0
answers
82
views
Bake '\today' into source file (or custom aux-file)
This is supposed to be a part of: Calendar instead of table of contents.
Situation
As mentioned I want to create a calendar-ish table of contents. The link to the heading (of eg. a chapter) should ...