---
schema_version: "1"
id: 723a6bfe5de1fdde517c713625b6cd46f507ba30fb02a756b64d480e974c297e
title: Dates Types (dw::core::Dates)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.6/dw-dates-types.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dw-dates-types
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 993c3a8be0a8cf887a8af83081897f17ee2e1bd7a93534688f2ddb904b4c18bb
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
---

# Dates Types (dw::core::Dates)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Type</th><th>Definition</th><th>Description</th></tr></thead><tbody><tr><td><p>DateFactory</p></td><td><div><div><p><code>type DateFactory = { day: Number, month: Number, year: Number }</code></p></div></div></td><td><div><div><p>Type containing selectable <code>day</code>, <code>month</code>, and <code>year</code> keys and corresponding <code>Number</code> values, such as <code>{day: 21, month: 1, year: 2021}</code>. The fields accept a <code>Number</code> value. Numbers preceded by <code>0</code>, such as <code>01</code>, are not valid.</p></div></div></td></tr><tr><td><p>DateTimeFactory</p></td><td><div><div><p><code>type DateTimeFactory = DateFactory &amp; LocalTimeFactory &amp; Zoned</code></p></div></div></td><td><div><div><p>Type that combines <code>DateFactory</code>, <code>LocalTimeFactory</code>, and <code>Zoned</code> types. For example, <code>{day: 21, month: 1, year: 2021, hour: 8, minutes: 31, seconds: 55, timeZone : |-03:00|} as DateTimeFactory</code> is a valid <code>DateTimeFactory</code> value.</p></div></div></td></tr><tr><td><p>LocalDateTimeFactory</p></td><td><div><div><p><code>type LocalDateTimeFactory = DateFactory &amp; LocalTimeFactory</code></p></div></div></td><td><div><div><p>Type that combines <code>DateFactory</code> and <code>LocalTimeFactory</code> types. For example, <code>{day: 21, month: 1, year: 2021, hour: 8, minutes: 31, seconds: 55, timeZone : |-03:00|} as LocalDateTimeFactory</code> is a valid <code>LocalDateTimeFactory</code> value. The <code>timeZone</code> field is optional.</p></div></div></td></tr><tr><td><p>LocalTimeFactory</p></td><td><div><div><p><code>type LocalTimeFactory = { hour: Number, minutes: Number, seconds: Number }</code></p></div></div></td><td><div><div><p>Type containing selectable <code>hour</code>, <code>minutes</code>, and <code>seconds</code> keys and corresponding <code>Number</code> values, such as <code>{hour: 8, minutes: 31, seconds: 55}</code>. The fields accept any <code>Number</code> value.</p></div></div></td></tr><tr><td><p>TimeFactory</p></td><td><div><div><p><code>type TimeFactory = LocalTimeFactory &amp; Zoned</code></p></div></div></td><td><div><div><p>Type that combines <code>LocalTimeFactory</code> and <code>Zoned</code> types. For example, <code>{hour: 8, minutes: 31, seconds: 55, timeZone : |-03:00|} as TimeFactory</code> is a valid <code>TimeFactory</code> value.</p></div></div></td></tr><tr><td><p>Zoned</p></td><td><div><div><p><code>type Zoned = { timeZone: TimeZone }</code></p></div></div></td><td><div><div><p>Type containing a selectable <code>timeZone</code> key and <code>TimeZone</code> value, such as <code>{ timezone : |-03:00|}</code>.</p></div></div></td></tr></tbody></table>
