> For the complete documentation index, see [llms.txt](https://docs.coupler.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coupler.io/functionality/preview-data/adding-formula-based-custom-columns/parameters-for-datetime_format-formula.md).

# Parameters for DATETIME\_FORMAT formula

Reference guide for DATETIME\_FORMAT formula parameters in Coupler.io. Format date and time values in your custom columns using supported pattern syntax.

DATETIME\_FORMAT formula presents a datetime value in a specified manner. There are different parameters that can be used to present your DATETIME data field into a preferred format by modifying the highlighted part of the formula:\
`datetime_format({arg},'`**`specified output format`**`')`

<table><thead><tr><th width="93.07421875">Output format</th><th>Formula example</th><th width="169.0234375">Output expected result</th><th width="131.0390625">Output example</th><th>Transformations preview</th></tr></thead><tbody><tr><td>M</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e968541e76e45e418fe82/file-JIvf4LatnL.png" alt="DATETIME_FORMAT({arg1},&#x27;M&#x27;)" data-size="original"></td><td>Month of the year, cardinal nos. 1-12</td><td>1 2 ... 11 12</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e968c41e76e45e418fe83/file-rAydv21Qvn.png" alt="" data-size="original"></td></tr><tr><td>MM</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9d9e593db721cbc787a0/file-cOCI6DGYxt.png" alt="DATETIME_FORMAT({arg},&#x27;MM&#x27;)" data-size="original"></td><td>Month of the year, cardinal nos. 01-12</td><td>01 02 ... 11 12</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9f6d593db721cbc787aa/file-vy5pC6ioDf.png" alt="" data-size="original"></td></tr><tr><td>MMM</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9d9e593db721cbc787a0/file-cOCI6DGYxt.png" alt="DATETIME_FORMAT({arg},&#x27;MMM&#x27;)" data-size="original"></td><td>Month name, three-letter abbreviation</td><td>Jan Feb ... Nov Dec</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9ee389402f0000f98458/file-uJwULtMvYp.png" alt="" data-size="original"></td></tr><tr><td>MMMM</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9d84bdc82f63f2ceaf38/file-WJ9citRkoZ.png" alt="DATETIME_FORMAT({arg},&#x27;MMMM&#x27;)" data-size="original"></td><td>Month name</td><td>January ... December</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9edc1fd8097307a119bc/file-3eqge4Vnav.png" alt="" data-size="original"></td></tr><tr><td>Q</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9d7a89402f0000f9844f/file-UwmDF3WDph.png" alt="DATETIME_FORMAT({arg},&#x27;Q&#x27;)" data-size="original"></td><td>Quarter of the year, cardinal nos. 1-4</td><td>1 2 3</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9ed61fd8097307a119bb/file-5fGmYQh0Nn.png" alt="" data-size="original"></td></tr><tr><td>D</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9d6241e76e45e418fe98/file-jkiwS7mAux.png" alt="DATETIME_FORMAT({arg},&#x27;D&#x27;)" data-size="original"></td><td>Day of the month, cardinal nos. 1-31</td><td>1 2 ... 30 31</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9ecf1fd8097307a119ba/file-GpNSOs1zqL.png" alt="" data-size="original"></td></tr><tr><td>Do</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9d3b89402f0000f9844e/file-nijbMzo0ch.png" alt="DATETIME_FORMAT({arg},&#x27;Do&#x27;)" data-size="original"></td><td>Day of the month, ordinal nos. 1st-31st</td><td>1st 2nd ... 30th 31st</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9ec6593db721cbc787a8/file-WbiBbUk6GC.png" alt="" data-size="original"></td></tr><tr><td>DD</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9d28593db721cbc7879f/file-5hGHKfN3b5.png" alt="DATETIME_FORMAT({arg},&#x27;DD&#x27;)" data-size="original"></td><td>Day of the month, cardinal nos. 01-31</td><td>01 02 ... 30 31</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9ebd1fd8097307a119b9/file-xBkDIyubj7.png" alt="" data-size="original"></td></tr><tr><td>d</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9d1889402f0000f9844d/file-gNL0vL41dw.png" alt="DATETIME_FORMAT({arg},&#x27;d&#x27;)" data-size="original"></td><td>Day of the week, cardinal nos. 0-6</td><td>0 1 ... 5 6</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9eaed624882e7e78ec3d/file-uJULP1usDx.png" alt="" data-size="original"></td></tr><tr><td>dd</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9d0d89402f0000f9844c/file-t3H6yfZCLK.png" alt="DATETIME_FORMAT({arg},&#x27;dd&#x27;)" data-size="original"></td><td>Day of the week, two-letter abbreviation</td><td>Su Mo ... Fr Sa</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9ea8bdc82f63f2ceaf3f/file-5k0uoDKMTo.png" alt="" data-size="original"></td></tr><tr><td>ddd</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9cfc41e76e45e418fe97/file-QVpdunKYoS.png" alt="DATETIME_FORMAT({arg},&#x27;ddd&#x27;)" data-size="original"></td><td>Day of the week, three-letter abbreviation</td><td>Sun Mon ... Fri Sat</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9ea21fd8097307a119b8/file-QleNzP63cE.png" alt="" data-size="original"></td></tr><tr><td>dddd</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9cebd624882e7e78ec37/file-xLnxMtv4J3.png" alt="DATETIME_FORMAT({arg},&#x27;dddd&#x27;)" data-size="original"></td><td>Day of the week</td><td>Sunday ... Saturday</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e9cbdc82f63f2ceaf3e/file-ViTG81Odk6.png" alt="" data-size="original"></td></tr><tr><td>w</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9cdc41e76e45e418fe96/file-mmbmNaEINB.png" alt="DATETIME_FORMAT({arg},&#x27;w&#x27;)" data-size="original"></td><td>Week of the year, cardinal nos. 1-53</td><td>1 2 ... 52 53</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e91d624882e7e78ec3c/file-sXsPASS3xJ.png" alt="" data-size="original"></td></tr><tr><td>ww</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9ccf593db721cbc7879e/file-EQeTnQyl1V.png" alt="DATETIME_FORMAT({arg},&#x27;ww&#x27;)" data-size="original"></td><td>Week of the year, cardinal nos. 01-53</td><td>01 02 ... 52 53</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e88d624882e7e78ec3b/file-f4wcKVzhSm.png" alt="" data-size="original"></td></tr><tr><td>WW</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9cbe89402f0000f9844a/file-N648h9kGDw.png" alt="DATETIME_FORMAT({arg},&#x27;WW&#x27;)" data-size="original"></td><td>Week of the year (ISO), cardinal nos. 01-53</td><td>01 02 ... 52 53</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e821fd8097307a119b7/file-5OxPP5IOCi.png" alt="" data-size="original"></td></tr><tr><td>YY</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9caf593db721cbc7879c/file-5UDGNPLGAn.png" alt="DATETIME_FORMAT({arg},&#x27;YY&#x27;)" data-size="original"></td><td>Year, last two digits</td><td>00 01 ... 98 99</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e7989402f0000f98456/file-i9Rsh0pqcM.png" alt="" data-size="original"></td></tr><tr><td>YYYY</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9c8dd624882e7e78ec36/file-XWjSvjQmdn.png" alt="DATETIME_FORMAT({arg},&#x27;YYYY&#x27;)" data-size="original"></td><td>Year</td><td>2000 2001 ... 2098 2099</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e6e1fd8097307a119b6/file-cuulY8l7Fm.png" alt="" data-size="original"></td></tr><tr><td>GGGG</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9c7b593db721cbc7879b/file-XMIVrqvdf5.png" alt="DATETIME_FORMAT({arg},&#x27;GGGG&#x27;)" data-size="original"></td><td>Week year (ISO)</td><td>2000 2001 ... 2098 2099</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e6789402f0000f98455/file-jeM2IOc9d6.png" alt="" data-size="original"></td></tr><tr><td>A</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9c63d624882e7e78ec35/file-kOLTd3D8Xo.png" alt="DATETIME_FORMAT({arg},&#x27;A&#x27;)" data-size="original"></td><td>Ante meridiem/post meridiem (majuscule)</td><td>AM PM</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e61bdc82f63f2ceaf3c/file-fd7leFdqaq.png" alt="" data-size="original"></td></tr><tr><td>a</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9c51d624882e7e78ec34/file-gTStKsoqxL.png" alt="DATETIME_FORMAT({arg},&#x27;a&#x27;)" data-size="original"></td><td>Ante meridiem/post meridiem (miniscule)</td><td>am pm</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e5a593db721cbc787a5/file-mbB2SzfWRW.png" alt="" data-size="original"></td></tr><tr><td>H</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9c3189402f0000f98449/file-8OvngEgO2c.png" alt="DATETIME_FORMAT({arg},&#x27;H&#x27;)" data-size="original"></td><td>Hour, using a 24-hour clock from 0-23</td><td>0 1 ... 22 23</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e4f593db721cbc787a4/file-qSpDn4PfOy.png" alt="" data-size="original"></td></tr><tr><td>HH</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9c21593db721cbc7879a/file-zOl6WpMbFb.png" alt="DATETIME_FORMAT({arg},&#x27;HH&#x27;)" data-size="original"></td><td>Hour, using a 24-hour clock from 00-23</td><td>00 01 ... 22 23</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e47593db721cbc787a3/file-2bNQ5nUzy6.png" alt="" data-size="original"></td></tr><tr><td>h</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9c12593db721cbc78799/file-dkrg8ChpTZ.png" alt="DATETIME_FORMAT({arg},&#x27;h&#x27;)" data-size="original"></td><td>Hour, using a 12-hour clock from 1-12</td><td>1 2 ... 11 12</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e4141e76e45e418fe9c/file-T1c8yZ5GpY.png" alt="" data-size="original"></td></tr><tr><td>hh</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9bfe41e76e45e418fe95/file-7M9HNYtdUd.png" alt="DATETIME_FORMAT({arg},&#x27;hh&#x27;)" data-size="original"></td><td>Hour, using a 12-hour clock from 01-12</td><td>01 02 ... 11 12</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e39593db721cbc787a2/file-pSQdSVGZe4.png" alt="" data-size="original"></td></tr><tr><td>m</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9becbdc82f63f2ceaf36/file-Gs5Mq215ab.png" alt="DATETIME_FORMAT({arg},&#x27;m&#x27;)" data-size="original"></td><td>Minute</td><td>0 1 ... 58 59</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e301fd8097307a119b2/file-ZvunttDoOO.png" alt="" data-size="original"></td></tr><tr><td>mm</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9bd4bdc82f63f2ceaf35/file-PNtPRmtOVv.png" alt="DATETIME_FORMAT({arg},&#x27;mm&#x27;)" data-size="original"></td><td>Minute</td><td>00 01 ... 58 59</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e2789402f0000f98453/file-FSTWl93JIO.png" alt="" data-size="original"></td></tr><tr><td>s</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9bc341e76e45e418fe94/file-Rv77YauAFW.png" alt="DATETIME_FORMAT({arg},&#x27;s&#x27;)" data-size="original"></td><td>Second</td><td>0 1 ... 58 59</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e1ed624882e7e78ec39/file-Fy5abvW7iz.png" alt="" data-size="original"></td></tr><tr><td>ss</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9b9dd624882e7e78ec33/file-GmRRJwdMie.png" alt="DATETIME_FORMAT({arg},&#x27;ss&#x27;)" data-size="original"></td><td>Second</td><td>00 01 ... 58 59</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e161fd8097307a119b1/file-9RHUAsucdj.png" alt="" data-size="original"></td></tr><tr><td>SSS</td><td><p><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9b07bdc82f63f2ceaf30/file-RGMozwf2jP.png" alt="DATETIME_FORMAT({arg},&#x27;SSS&#x27;)" data-size="original"></p><p><br></p></td><td>Fractional second</td><td>000 001 ... 998 999</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e0e1fd8097307a119b0/file-1k3ImMKRhQ.png" alt="" data-size="original"></td></tr><tr><td>Z</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9ae7d624882e7e78ec31/file-m9PdscE0Tn.png" alt="DATETIME_FORMAT({arg},&#x27;Z&#x27;)" data-size="original"></td><td>Time zone relative to GMT, inc. colons</td><td>-07:00 -06:00 ... +06:00 +07:00</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9e071fd8097307a119ad/file-rRU6q6lzHh.png" alt="" data-size="original"></td></tr><tr><td>ZZ</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9aa641e76e45e418fe92/file-HgnouyIlJB.png" alt="DATETIME_FORMAT({arg},&#x27;ZZ&#x27;)" data-size="original"></td><td>Time zone relative to GMT, not inc. colons</td><td>-0700 -0600 ... +0600 +0700</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9dfb41e76e45e418fe9a/file-Ye8dwJnFOU.png" alt="" data-size="original"></td></tr><tr><td>X</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e99a7d624882e7e78ec30/file-xrhB6sGdDL.png" alt="DATETIME_FORMAT({arg},&#x27;X&#x27;)" data-size="original"></td><td>Unix timestamp</td><td>1360013296</td><td><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/678e9df589402f0000f98451/file-bbd3NReFVj.png" alt="" data-size="original"></td></tr></tbody></table>

{% hint style="info" %}
**Notes:**

* The formula supports various combinations of format specifiers:
* For example, 1991-08-24T15:12:52.567Z value of Datetime-formatted cell can be used in a following formula DATETIME\_FORMAT({**date**},'**Do** *of* **MMMM, YYYY**') to generate a result of "**24th** *of* **August***,* **1991**".
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.coupler.io/functionality/preview-data/adding-formula-based-custom-columns/parameters-for-datetime_format-formula.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
