These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Pdf form to display correct time in minutes like 8:05 etc..

summa
Registered: Apr 25 2010
Posts: 24
Answered

Pdf form with text box conrol set to display date and time..
for the time part if we type 08:05 - it displays as 8:5 instead of showing as 8:05.
How to make it display in that format. The format property of the text box control is set to number and limited to 2 digits entry..

gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
Why not use the "Time" format option?

If you do not use the provided "Time" formats or the 'Custom' option, you may find yourself writing the key stroke and format and validation scripts.

The ':' , colon, character forces the value to a character string and not a number string since the ':' is not one of the standard numeric decimal, thousand, or sign characters.

You can use the 'util.printf()' method to format the hour and minutes with a leading zero.

George Kaiser