GetDatePhrase

(VTScada-Layer function. Must be called with a leading backslash.)

Description: Returns a formatted date for the current user's locale
Returns: Text
Usage: Script or Steady State
Function Groups:

String and Buffer

Related to: GetTimePhrase | GetParmPhrase
Format: \GetDatePhrase(Day, FormatID)
Parameters:  
Day
Required numeric. The number of days since January 1, 1970.
FormatID
Required text. The phrase identifier key specifying the date format.
See: Date and Time Phrase Keys
Comments:

The Language property in the caller's scope is used to specify the language name (e.g. en). Defaults to the Windows system's language.

Example:

  \GetDatePhrase(Today(), "DateFmtFullWritten")

returns "Apr 12, 2019", assuming that the current language is English.