Shortdateformat – Echelon OpenLNS User Manual
Page 383
OpenLNS Programmer's Reference
346
clients.
Syntax
parentObject = object.Parent
Element
Description
parentObject
The object that is the parent of the
specified object.
object
Any object for which the parent is
desired.
Data Type
Object.
Read/Write
Read only.
Added to API
Depends on the object used to access the property. Generally,
this property exists for an object as soon as the object is
added to the API.
ShortDateFormat
Summary
Determines how a formatted value will be displayed if it
represents a date
.
You can display the month, day and year in any order, but
there are certain restrictions to how each part of the date
can be displayed. This applies to format specifications
containing the date() macro in their text format
specification, such as SNVT_date_time#LO:
text(time(hour, minute, second))
•
When setting the year format, you can the following
formats:
o
"yy" to display the year with 2 digits.
o
"yyyy" to display the year with 4 digits.
•
When setting the month format, you can the following
formats:
o
"M" to display the month with the least possible
number of digits.
o
"MM" to always display the month with 2 digits,
with leading zeroes for months 1-9.
o
"MMM" to display the month as a 3-letter,
abbreviated name (e.g. "JAN" for January).
o
"MMMM" to display the month by its full name, as
a string.
•
When setting the day format, you can use the
following formats:
o
"dd" to always display the day with 2 digits, with
leading zeroes for days 1-9.
o
"d" to display the day with the least possible
nimber of digits.