Character
Overview
Acrobat Sign provides several standard formats for date validation, but many businesses have a need for the date to be in a very specific format. To accommodate all use cases, Acrobat Sign allows users to define their own custom date format using characters as variables (representing how the day/month/year etc. are presented) and separators to clearly divide the date values.
Availability:
Date validations are available for individual, team, and enterprise license plans.
The form of the validation is defined using alphabetic characters as format tokens that represent values for the following:
- Day - Either in a shortened version or fully spelled out.
- Month - Either in a shortened version or fully spelled out.
- Year - In two or four digits.
- Hour - Either military or standard time.
- Minute - Either retaining or trimming a leading zero.
- Second - Either in a shortened version or fully spelled out.
- AM/PM - Either the first character or both.
Format token |
Description |
Example |
---|---|---|
s |
The seconds of the minute between 0-59. |
"0" to "59" |
ss |
The seconds of the minute with leading zero if required. |
"00" to "59" |
n |
The minute of the hour between 0-59. |
"0" or "59" |
nn |
The minute of the hour with leading zero if required. |
"00" or "59" |
h |
The hour of the day between 1-12. |
"1" to "12" |
hh |
The hour of the day with leading zero if required. |
"01" to "12" |
H |
The hour of the day between 0-23. |
"0" to "23" |
HH |
The hour of the day with leading zero if required. |
"00" to "23" |
d |
The day of the month between 1 and 31. |
"1" to "31" |
dd |
The day of the month with leading zero if required. |
"01" to "31" |
ddd |
Abbreviated day name. |
"Mon" to "Sun" |
dddd |
The full day name. |
"Monday" to "Sunday" |
m |
The month of the year between 1-12. |
"1" to "12" |
mm |
The month of the year with leading zero if required. |
"01" to "12" |
mmm |
Abbreviated month name. |
"Jan" to "Dec" |
mmmm |
The full month name. |
"January" to "December" |
yy |
The year as a two-digit number. |
"99" or "15" |
yyyy |
The full four digit year. |
"1999" or "2015" |
t |
Displays the first character of the A.M./P.M. designator. |
"A" or "P" |
tt |
Displays the A.M./P.M. designator. |
"AM" or "PM" |
In addition to the date formatting tokens, there are seven separators that can be used to form a date expression that separates the several values of the date.
|
Description |
Format example |
Final document rendering |
, |
Comma |
mm,dd,yyyy |
09,07,2023 |
. |
Period / Dot |
mmm.dd yyyy |
Sept.07 2023 |
/ |
Forward slash |
mm/dd/yyyy |
08/07/2023 |
\\ |
Double backslash |
mm\\dd\\yyyy (Note that the double backslash is used to format the date, but the printed value only contains one backslash.) |
09\07\2023 |
- |
Dash / Hyphen |
mm-dd-yyyy |
09-07-2023 |
: |
Colon |
mm:dd:yyyy HH:nn:ss |
09:07:2023 15:23:42 |
|
Space / |
dddd mmmm d yyyy |
Thursday September 7 2023 |
There is no limitation in using separators. They can be standalone or used in-between the format tokens.
When designing the validation format in the field properties, an example of the format is dynamically exposed under the field to provide an example of what the required input will be.
Recipients that enter a date in a format other than the designed validation form will trigger an error message that provides the exact form required.