---
title: "Invoice V3.1 · dateType"
canonical: "https://knowledge-hub.onetrail.com/space/docs/726597764/Invoice%20V3.1%20%C2%B7%20dateType"
format: markdown
---
**Complex type** in namespace `http://www.onetrail.net` · part of [Invoice V3.1](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718701262)

## Diagram

![dateType diagram](media://fb9bbea0-ad8c-4706-b608-2cab1f61deb9)

## Content

Text content of type [DateTimeFormatType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718701262/XSD+documentation+invoice#XSDdocumentationinvoice-DateTimeFormatType), with the attributes below.

## Attributes

| Attribute | Type | Use | Description |
| --- | --- | --- | --- |
| **@type** | [DateTypeType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718701262/XSD+documentation+invoice#XSDdocumentationinvoice-DateTypeType)  
`Invoice` `Order` `DespatchAdvice` | [required] | type has 3 possible values:<br>- 'Order'
- 'DespatchAdvice'
- 'Invoice' |

## Used by

- [orderHistoryType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726040670) / **date**

<details>
<summary>XSD source</summary>

```xml
<xsd:complexType name="dateType">
        <xsd:simpleContent>
            <xsd:extension base="DateTimeFormatType">
                <xsd:attribute name="type" type="DateTypeType" use="required">
                    <xsd:annotation>
                        <xsd:documentation xml:lang="EN">type has 3 possible values:
                            - 'Order'
                            - 'DespatchAdvice'
                            - 'Invoice'</xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>

```
</details>