Back
fmtTimeStampInput
Editing, Updating and Creating Records
fmtTimeStampInput
Default format of timestamps for data entry
Default:
Default for USA is "m/d/Y h:i:s A". The format is not case-sensitive.

a - display AM/PM radio buttons
d - day of the month, 2 digits with leading zeros; i.e. "01" to "31"
h - hour, "01" to "12" or "00" to "23" depending on whether AM/PM is displayed.
i - minutes; i.e. "00" to "59"
m - month; i.e. "01" to "12"
s - seconds; i.e. "00" to "59"
Y - year, 4 digits; i.e. "1999"

Text input fields are used as the default. If you want to use select menus, you can enable it (since 5.0.2) using the p flag (short for popup menu), which is a toggle.

If you want all fields to use menus, British date format:
  pd/m/Y H:i:s A

If you want only the month field to use menus, British date format:
  d/pmp/Y H:i:s A

To control the years displayed in the year select menu, use the properties yearPlus and yearMinus. If you want to display the last 10 years and up to 30 years into the future, use:

$lens->yearPlus = 30
$lens->yearMinus = 10

 Basic:Yes  Advanced/Enterprise:Yes  DynamicEdit:Yes   [Version 1.0]