# Date Range Component, dateStyle styles

**URL:** <https://forum.inductiveautomation.com/t/date-range-component-datestyle-styles/2690>\
**Category:** Ignition\
**Created:** [February 24, 2011, 7:01am UTC](https://forum.inductiveautomation.com/t/date-range-component-datestyle-styles/2690 "2011-02-24T07:01:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnguyen](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@gnguyen](https://forum.inductiveautomation.com/u/gnguyen)\
**Post date:** [February 24, 2011, 7:01am UTC](https://forum.inductiveautomation.com/t/date-range-component-datestyle-styles/2690/1 "2011-02-24T07:01:54Z")

</div>

Hi,

My users use to have date formated with 2 digits for day and month. Is it possible to force this behaviour ?  
the dateStyle property has 4 settings, good, but all format day with one digit for day from 01 to 09.

Thanks

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [February 24, 2011, 6:26pm UTC](https://forum.inductiveautomation.com/t/date-range-component-datestyle-styles/2690/2 "2011-02-24T18:26:07Z")

</div>

The date format string property is just a string. To display two digit days just edit the string including dd. You can always add a dynamic property that is a string bound to a dateFormat expression to force the format if the component does not have a format string property.

---

<div class="post-metadata">

**Author:** ![gnguyen](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@gnguyen](https://forum.inductiveautomation.com/u/gnguyen)\
**Post date:** [February 27, 2011, 11:04am UTC](https://forum.inductiveautomation.com/t/date-range-component-datestyle-styles/2690/3 "2011-02-27T11:04:57Z")

</div>

Hi Travis,

I think we do not talk about the same dateStyle property. The one I’m talking to is the property of a DateRange compoment (embedded in chart or standalone).  
See screencap enclosed.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/2ac282195618b77a66c7f041d331a0a131f8a223.png)

---

<div class="post-metadata">

**Author:** ![dave.fogle](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@dave.fogle](https://forum.inductiveautomation.com/u/dave.fogle)\
**Post date:** [March 1, 2011, 12:03am UTC](https://forum.inductiveautomation.com/t/date-range-component-datestyle-styles/2690/4 "2011-03-01T00:03:55Z")

</div>

There are only the three options for displaying the date (MDY,DMY,YMD) all of which only display the day as a single digit for 1-9. Unfortunately there is no way to get the day to be displayed as two digits.

---

<div class="post-metadata">

**Author:** ![agrant4](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@agrant4](https://forum.inductiveautomation.com/u/agrant4)\
**Post date:** [August 19, 2013, 6:42pm UTC](https://forum.inductiveautomation.com/t/date-range-component-datestyle-styles/2690/5 "2013-08-19T18:42:05Z")

</div>

Hi,

I have encountered a similar restriction in the available Date Style options in the Date Range component.

Of the 3 options, my preference is always the ISO standard and unambiguous YMD, however when formatted to be only up to 2 digits for each element, it becomes more ambiguous e.g. how is 10/11/12 to be interpreted when the user doesn’t know if YMD, MDY or DMY was selected.

Please can you add a feature request to either add to the options (or replace one) with the full-expression of “yyyy-MM-dd”.

Image attached for your reference.

Andrew

---

<div class="post-metadata">

**Author:** ![agrant4](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@agrant4](https://forum.inductiveautomation.com/u/agrant4)\
**Post date:** [October 17, 2013, 1:21pm UTC](https://forum.inductiveautomation.com/t/date-range-component-datestyle-styles/2690/6 "2013-10-17T13:21:52Z")

</div>

Hi Ignition team, can you respond to the above queries?
