Hour format property

Official Content
This documentation is valid for:
Sets which divisions of an hour to use (hour, minutes, seconds, milliseconds, or only some of them).

Values

Hour and minutes (hh:mm) Accepts and displays hours and minutes.
Hour, minutes and seconds (hh:mm:ss) Accepts and displays hours, minutes, and seconds.
Hour, minutes, seconds and milliseconds (hh:mm:ss.fff) Accepts and displays hours, minutes, seconds, and milliseconds.
Only hour (hh) Accepts and displays only hours.

Scope

Level: Attribute, Domain, Variable

Description

This property is available for attributes and variables based on the DateTime data type to set which divisions of an hour to use.

In addition, depending on the value set in the Precision property for the attribute/variable based on the DateTime data type, the Hour format property will offer different values.  

If the Precision property = Seconds, the Hour format property will offer the values:

  • Only hour (hh)
  • Hour and minutes (hh:mm)
  • Hour, minutes and seconds (hh:mm:ss)

On the other hand, if the Precision property = Milliseconds, the Hour format property will offer the value:

  • Hour, minutes, seconds and milliseconds (hh:mm:ss:fff)
     

Note: It is possible to handle milliseconds as from GeneXus 15 Upgrade 11. So, this property starts offering the "Hour, minutes, seconds and milliseconds (hh:mm:ss.fff)" value in the same version.

Run-time/Design-time

This property applies only at design-time.

How to apply changes

To apply the corresponding changes when the property value is configured, execute a Build All.

See Also

Precision property