Code: Select all
\DTMsetdatestyle{default}\today
Thanks in advance.
Code: Select all
\DTMsetdatestyle{default}\today
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Code: Select all
\usepackage[USenglish]{datetime2}
\DTMnewdatestyle{mydate}{\THEYEAR\THEMONTH\THEDAY}
you appear to be mixing commands from the olderwjfeeney wrote:Code: Select all
\usepackage[USenglish]{datetime2} \DTMnewdatestyle{mydate}{\THEYEAR\THEMONTH\THEDAY}
\DTMnewdatestyle
should be used to redefine \DTMdisplaydate
and \DTMDisplaydate
, e.g.,
Code: Select all
\DTMnewdatestyle{mydate}{%
\renewcommand*\DTMdisplaydate[4]{##1##2##3}%
\renewcommand*\DTMDisplaydate{\DTMdisplaydate}%
}
Code: Select all
\DTMsetdatestyle{mydate}
Code: Select all
\documentclass{article}
\usepackage[datesep={}]{datetime2}
\begin{document}
\today
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis