# \[AS2\] Date Field selectableRange starting "yesterday"

**URL:** <https://forum.kirupa.com/t/as2-date-field-selectablerange-starting-yesterday/294077>\
**Category:** flash\
**Created:** [August 7, 2009, 9:29pm UTC](https://forum.kirupa.com/t/as2-date-field-selectablerange-starting-yesterday/294077 "2009-08-07T21:29:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vascoraf](https://avatars.discourse-cdn.com/v4/letter/v/c67d28/32.png) [@vascoraf](https://forum.kirupa.com/u/vascoraf)\
**Post date:** [August 7, 2009, 9:29pm UTC](https://forum.kirupa.com/t/as2-date-field-selectablerange-starting-yesterday/294077/1 "2009-08-07T21:29:07Z")

</div>

Im using a **DateField component** and i would like to set the **selectableRange** so that the **rangeStart is set for yesterday** (the day before today). I have another DateField where the rangeStart is “today” and im using this:

```auto
selectableRange = {rangeStart:new Date(now)};

```

Is there any similar solution for “yesterday”?
