- Knowledgebase
- Studio Guide
- List of OCL Methods
-
Glossary
-
XML / ISO 20022 Standard
-
ISO 20022 Messages
-
XML Schema
- Miscellaneous
- Attribute
- Closing Tag
- Comment
- Content
- Cvc-complex-type
- Cvc-elt
- Cvc-id
- Cvc-identity-constraint
- Cvc-minexclusive-valid
- Cvc-mininclusive-valid
- Cvc-type
- Cvc-totaldigits-valid
- Cvc-attribute
- Cvc-datatype-valid
- Maximum Length
- Cvc-enumeration-valid
- Cvc-fractiondigits-valid
- Cvc-length-valid
- Cvc-maxexclusive-valid
- Cvc-maxinclusive-valid
- Cvc-maxlength-valid
- Cvc-minlength-valid
- Cvc-pattern-valid
- Element Value
- Encoding
- Length
- Mandatory element
- Missing
- Missing Tag
- Missing Child Element
- MIXD
- Root
- Unsupported Characters
- UTF-8
- Value
- Wrong Declaration
-
EPC SEPA
-
CGI-MP
-
US ACH (Nacha)
-
SWIFT MT
-
Finvoice
-
Bank-Specific
-
XMLdation Service Guides
-
Studio Guide
-
Simulator
.allowedDaysInPast()
Description of the method
Description: | .allowedDaysInPast() method checks if the given date is within the days from the system date to a past date. The past date is x days into the past from the system date and the x is given as a parameter. |
Available for: | ISODateTime or ISODate |
Parameters: | integer |
Return type: | boolean |
Example
Context: | HeaderType1 |
OCL: | self.Dt.allowedDaysInPast(3) |
Description: | The example rule checks if the date of <Dt> is within 3 days from the system date. |
The XML snippet below would pass this check, if assumed that the system date is 25.05.2018.
<Dt>2018-05-24T10:30:47</Dt>
<Dt>2018-05-24T10:30:47</Dt> |
The other snippet below however would not pass this check.
<Dt>2022-03-05T10:30:47</Dt>