For Adobe ColdFusion application servers Time

time accepts a time and optional date, and returns a time of day. So if, for example, a time field has the attribute default="#Now()#", then the default time will be the current time, with the date disregarded. time now uses the timepicker format if no format is explicitly indicated.

One special attribute is available for time:

  • date
    Optional. If supplied, a date will be extracted from this attribute and added to the time

Examples

A regular time field:

<cf_terrafield
  name="Time1"
  datatype="time"
  caption="your arrival time"
/>
:

A time field today:

<cf_terrafield
  name="Time2"
  datatype="time"
  date="#Now()#"
  default="#Now()#"
/>

:

No comments yet