[Tex/LaTex] How to write the date in french

date

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 problem?

What's more, the title of content misses also a "è":
enter image description here

Best Answer

Adding \usepackage[T1]{fontenc} and \usepackage{lmodern} solved the problem.

@Bernhard: Add \usepackage[T1]{fontenc} and \usepackage{lmodern}if unless you want a non-default font.

Output:

enter image description here

Code:

\documentclass[a4paper,11pt]{article}
\usepackage[francais]{babel}
%\usepackage[french]{babel}
\usepackage{datetime}  

\usepackage[T1]{fontenc}
\usepackage{lmodern}
\begin{document}

\today 
\end{document}

You can also customize your date format with \newdateformat{mydateformat}{\monthname~\THEYEAR}. Command \mydateformat\today.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Your second Question: Answer for table of content

enter image description here

You only need a section. Formatting pagecounter is optional.

\documentclass[a4paper,11pt]{article}
\usepackage[francais]{babel}
%\usepackage[french]{babel}
\usepackage{datetime}  
 \title{Sur l'Extension Galoisienne de Degr\'e Infini}

\usepackage[T1]{fontenc}
\usepackage{lmodern}
\begin{document}

\maketitle \tableofcontents 
\pagestyle{empty}
\cleardoublepage
\setcounter{page}{1}   
\pagestyle{plain}

\section{Date}
Today: \today 
\end{document}
Related Question