DateAttribute class | QSYS API Reference Guide

Provides Date Attribute (for Properties)

Namespace: ASNA.QSys.Expo.Model Assembly: ASNA.QSys.Expo.Model.dll

Inheritance: Object –> Attribute –> FieldAttribute

Remarks

Model Fields are declared as Record Properties. To annotate the Fixed Type as Date, Model properties can use this attribute.

For example,

[Date(DateFormat = DateAttribute.DdsDateFormat.USA)]
public DateTime SORDDATE { get; private set; } // ORDER DATE

Declares a read-only field of Fixed Type Date, with "USA" presentation Date Format, named SORDDATE on a particular Model Record.

Properties

Type Name Description
DdsDateFormat DateFormat Gets or sets DDS Date Format (Defaults to ISO)
String DateSeparator Gets or sets Date separator as a string (Defaults to “-“)
String STD_FORMAT Standard Date Format

Methods

Signature Description
GetFrom(MemberInfo) Gets a DateAttribute from a field member

DateAttribute GetFrom(MemberInfo fieldMember)

Gets a DateAttribute from a field member

DateAttribute GetFrom(MemberInfo fieldMember)

Parameters

Type Parameter name Description
MemberInfo fieldMember field member information

Returns

Type Description
DateAttribute the data attribute