Within each field's properties, there is a Custom JavaScript tab with functions that can be used to tailor and extend the form. There are also events related to workflow actions that permit customization of the form behavior when a user performs an action. In each of these cases, there are a few objects that can be referenced within the Custom JavaScript.
...
%(ConfigTimeZoneAbbr)%
%(ConfigTimeZone)%
%(Now)%
%(SiteURL)%
%(SiteTitle)%
...
This formatting suffix is used to decide which portions of the DateTime value are displayed and in what order.
Example - ("MM/dd/yyyy hh:mm tt") = 05/29/2018 03:59 AM
Character | Formatting functionality |
---|---|
d | Represents the day of the month as a number from 1 through 31. |
dd | Represents the day of the month as a number from 01 through 31. |
ddd | Represents the abbreviated name of the day. (Mon, Tues, Wed etc). |
dddd | Represents the full name of the day. (Monday, Tuesday etc). |
h | 12-hour clock hour. (e.g. 4). |
hh | 12-hour clock, with a leading 0. (e.g. 06) |
H | 24-hour clock hour. (e.g. 15) |
HH | 24-hour clock hour, with a leading 0. (e.g. 22) |
m | Minutes. |
mm | Minutes with a leading zero. |
M | Month number. (eg.3) |
MM | Month number with leading zero. (eg.04) |
MMM | Abbreviated Month Name. (e.g. Dec) |
MMMM | Full month name. (e.g. December) |
s | Seconds. |
ss | Seconds with leading zero. |
t | Abbreviated AM / PM. (e.g. A or P) |
tt | AM / PM. (e.g. AM or PM) |
K | Represents the time zone information of a date and time value. (e.g. +05:00) |
...