2

Some PDF readers might support a date picker for a text field that contains a date format, as explained here: How to create datepicker using JavaScript in Acrobat DC Pro?

This article gave me the impression that I have to format the \TextField from hyperref for dates. Currently I've no idea how to achieve this. I've tried to figure out which properties of the text field I need to change in JavaScript with the help of Acrobat DC SDK Documentation, but I can't find anything that works. Perhaps I've missed something.

Does anyone know how?

Bernard
  • 271,350

1 Answers1

5

This needs javascript and if I got your link right a recent adobe reader.

\documentclass[12pt]{article}
\usepackage{hyperref}

\begin{document}
\begin{Form}
\TextField[format   ={AFDate_FormatEx("dd.mm.yyyy");},
           keystroke={AFDate_KeystrokeEx("dd.mm.yyyy");}]{date}
\end{Form}

\end{document}

enter image description here

Ulrike Fischer
  • 327,261