Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Unified Engineering

DATEFORMAT Object

  • Last UpdatedMar 24, 2023
  • 1 minute read

The DATEFORMAT object is used to allow date attributes to be sorted in date order.

Examples

!format = object DATEFORMAT(T D/M/Y’)

!format.month(‘INTEGER’)

!format.year(2)

$ 12:10 05/01/01

!format = object DATEFORMAT(‘T D M Y’)

!format .month(‘BRIEF’)

$ 12:10 05 Nov 01

!format = object DATEFORMAT (‘D M’)

!format.year(4)

!format.month(‘FULL)

$ 5 November 2001

Methods

Name

Result

Purpose

DateFormat(STRING format)

Constructor. Defines a format.

The input string, format, is in the form 'T*D*M*Y', where T = time, D = day, M = month, Y = year, and the order of the letters indicate the format required.

T and D are optional. H could be used if only hours are required.

* is the separator character.

DateFormat()

Sets default format (‘T M D Y’, month = ‘INTEGER’, year = 2).

Month(STRING)

Sets month format. 'INTEGER', 'BRIEF' or 'FULL'.

Year(INT)

Sets year format. 2 or 4 for number of digits.

String(DATETIME)

STRING

Input a date in DATETIME format and convert to the specified format.

String(STRING)

STRING

Input a date in AVEVA E3D Design format and convert to the specified format.

Related Links
TitleResults for “How to create a CRG?”Also Available in