# Format requirements for 'date' data type

**URL:** <https://community.swiftype.com/t/format-requirements-for-date-data-type/377>\
**Category:** General\
**Tags:** meta-tags\
**Created:** [June 20, 2017, 3:08pm UTC](https://community.swiftype.com/t/format-requirements-for-date-data-type/377 "2017-06-20T15:08:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kim.koehler](https://avatars.discourse-cdn.com/v4/letter/k/e495f1/32.png) [@kim.koehler](https://community.swiftype.com/u/kim.koehler)\
**Post date:** [June 20, 2017, 3:08pm UTC](https://community.swiftype.com/t/format-requirements-for-date-data-type/377/1 "2017-06-20T15:08:37Z")

</div>

For ‘date’ data types:  
Is it permissible to use a date-only format (e.g. yyyy-mm-dd), or is a full Datetime (yyyy-mm-ddThh:mm:ss) required?

---

<div class="post-metadata">

**Author:** ![mike](https://sea1.discourse-cdn.com/flex019/user_avatar/community.swiftype.com/mike/32/37_2.png) [@mike](https://community.swiftype.com/u/mike)\
**Post date:** [June 21, 2017, 12:25am UTC](https://community.swiftype.com/t/format-requirements-for-date-data-type/377/2 "2017-06-21T00:25:13Z")

</div>

Hi Kim,

It’s possible to use either the `yyyy-mm-dd` format or the combined date & time in UTC. 🙂

ex. `<meta class="swiftype" name="published_at" data-type="date" content="2017-06-20" />`
