Date Attributes

There are some specific things to observe with date attributes. Date attributes are not simple strings.

In order to clear (reset) a date attribute you have to execute the following code:

ThisObject.E_MyDate = NULL


BEFORE V6R2013x

In releases before V6R2013x,  there is no constructor for date that would let you pass a date of your choice. Hence in order to construct (preset) the value of a date attribute you need an already present date attribute value. E.g. in a PLM Opening, the current date (today) is part of the global "Parameter" list

Let curDate(Date)

curDate = Parameter.CurrentDate
ThisObject.E_MyDate = curDate

You may also do arithmetics with the data by adding/substracting time values, e.g.

ThisObject.E_MyDate = curDate + 1day


V6R2013x and later

There are three constructors to Build a date, please refer to the attached example. So you just create your date and assign it to your date attribute.

 

Previous Page
Wiki Root