Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [datetime2]

The `datetime2` package provides commands for formatting dates, times and time zones and redefines `\today` to use the same formatting style.

Filter by
Sorted by
Tagged with
4
votes
2answers
152 views

datetime2, norwegian day of week missing

I have tried to figure out how to enable printing the day of week, but I cannot seem to be able to do this for norwegian. It works fine for British. I do realize that it might be because it is ...
11
votes
2answers
891 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 ...
9
votes
3answers
2k views

How do I extract a month name in datetime2?

In datetime, there was a macro which provided the long name of the month, so if I have saved a date as, say, gitdate, I can extract the month name by: \monthname{\getdatemonth{gitdate}} Is there ...
3
votes
1answer
282 views

How should language aliases be used with datetime2?

Consider the following code: \documentclass[british]{article} \usepackage{babel} \usepackage[utf8]{inputenc} \usepackage{datetime2} \DTMsetup{useregional} \DTMlangsetup[en-GB]{ord=raise} \begin{...
6
votes
1answer
557 views

How does showdow work in datetime2?

Since datetime is no longer getting bug fixes, I've been looking at the possibility of switching to datetime2. However, aside from the fact that I'd need to write my own language module, I can't even ...
3
votes
1answer
2k views

Where can I get datetime2.sty or what is CTAN?

I am trying to build a huge latex project on my system - I downloaded everything, and did not touch anything. XeLaTeX tells me that datetime2.sty is missing, and I guess I just have to download it, ...
1
vote
1answer
183 views

numeric undefined in datetime2 package

I ran into a weird problem with the \usepackage{datetime2} (with datetime2-english installed). When I run the following code \documentclass{article} \usepackage[UKenglish]{babel} \usepackage[...