DateTime Display

The DateTime Display graphic element is configured to show the current date and time on the HMI device.
Add the DateTime Display graphic element to a screen to:
  • Show the current date and time on the HMI device screen.
  • Change the the format of the date and time in the
    Format
    box of the
    Properties
    window.
  • Select the tag representing the date and time of the HMI device in the
    Value
    box in the
    Properties
    window.
Built-in animation properties
Built-in animation properties appear under the
General
category of the
Properties
window. Specify values for these properties in order to animate the graphic element or change the information the graphic element shows on the HMI device.
Name
Category
Purpose
Accepted values
Format
General
Specifies the format of the date and time.
  • yyyy-MM-dd hh:mm:ss.zzzzzz
  • M/dd/yyyy h:mm:ss AP
  • d MMM yyyy hh:mm:ss
  • yyyy-MM-dd hh:mm:ss
  • dd/M/yyyy hh:mm:ss
  • dddd, MMMM d, yyyy
  • MMMM d, yyyy
  • d MMMM yyyy
  • d MMM yyyy
  • yyyy-MM-dd
  • M/d/yyyy
  • d/M/yyyy
  • dddd
  • MMMM d
  • yyyy
  • hh:mm:ss. zzz AP
  • hh:mm:ss AP
  • hh:mm ss
  • hh: mm AP
  • hh
  • mm
  • ss
Value
General
Specifies the value of the graphic element.
Bound tag
Unique properties
Unique properties are properties that not all graphic elements in the
Toolbox
share.
Name
Category
Purpose
Accepted values
CornerRadius
Appearance
Specifies the curve of the corners.
0 or a positive number
FillColor
Appearance
Specifies the fill color.
Any selected color in the
Color Picker
or a Hex color value entered manually. The Hex value must be in the format #RRGGBB. R, G, and B are Hex digits from 0 through F and represent the color channel values for red, green, and blue. For example, #ffff00 produces yellow.
TextAlignment
Appearance
Specifies the vertical and horizontal alignment of the text.
Vertical alignment:
  • Top
  • Center
  • Bottom
Horizontal alignment:
  • Left justified
  • Centered
  • Right justified
Color
Appearance/Border
Specifies the color of the border.
Any selected color in the
Color Picker
or a Hex color value entered manually. The Hex value must be in the format #RRGGBB. R, G, and B are Hex digits from 0 through F and represent the color channel values for red, green, and blue. For example, #ffff00 produces yellow.
Style
Appearance/Border
Specifies the style of the border line.
  • Any selected Line style - None, Solid, Dash, Dot, Dash Dot, or Dash Dot Dot
  • Any selected Cap style - Flat, Round, or Square
  • Any selected Join style - Miter, Bevel, or Round
Width
Appearance/Border
Specifies the width of the border line.
  • None
  • 1 point
  • 2 point
  • 4 point
  • 8 point
FontName
Appearance
Specifies the font of the text.
Any selected font
FontColor
Appearance
Specifies the color of the text.
Any selected color in the
Color Picker
or a Hex color value entered manually. The Hex value must be in the format #RRGGBB. R, G, and B are Hex digits from 0 through F and represent the color channel values for red, green, and blue. For example, #ffff00 produces yellow.
FontSize
Appearance
Specifies the size of the text.
Positive numbers
Bold
Appearance
Makes the text or value on the graphic element bold.
  • Bold - selected
  • Not bold - cleared
Padding
Appearance
Specifies the distance, in points, between the content of the element and the edge of the element.
Any numeric value
Common properties
Common properties exist for all graphic elements.
Property
Category
Purpose
Accepted Values
Access
Security
Specifies if all users have access to the control element, or if access is inherited from the screen.
  • Inherit - Access inherited from screen.
  • Full Access - Access granted to all users.
Angle
Position and Size
Specifies the rotation angle.
Enter 180 to display the graphic element upside down. If you enter a value larger than 360, the portion of numeric value that is over 360 becomes the value. For example, enter 380 to see a value of 20. If you enter a value less than 0, the negative value is subtracted from 360. For example, enter -30 to see a value of 330.
  • Numbers 0 to 360
Enabled
Appearance
Specifies if the graphic element is available on the HMI device and if the graphic element accepts touch and key input.
  • Enabled - selected
  • Not Enabled - cleared
Height
Position and Size
Specifies the height in pixels.
Any positive numeric value
Opacity
Appearance
Specifies the transparency of the graphic element.
0 (fully transparent) - 100 (fully opaque)
Visible
Appearance
Specifies if the graphic element is visible on the HMI device.
  • Visible - selected
  • Not visible - cleared
Width
Position and Size
Specifies the width in pixels.
Any positive number
X
Position and Size
Specifies the horizontal coordinate, in pixels, from the upper left corner of screen to the upper left corner of a graphic element or group with no rotation. If the graphic element or group is rotated, the X property value does not change.
Any positive number
Y
Position and Size
Specifies the vertical coordinate, in pixels, from the upper left corner of screen to the upper left corner of a graphic element or group with no rotation. If the graphic element or group is rotated, the Y property value does not change.
Any positive number
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal