# DateChooser component

**URL:** <https://forum.kirupa.com/t/datechooser-component/52909>\
**Category:** flash\
**Created:** [May 28, 2004, 6:42pm UTC](https://forum.kirupa.com/t/datechooser-component/52909 "2004-05-28T18:42:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simpleSoft](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@simpleSoft](https://forum.kirupa.com/u/simpleSoft)\
**Post date:** [May 28, 2004, 6:42pm UTC](https://forum.kirupa.com/t/datechooser-component/52909/1 "2004-05-28T18:42:42Z")

</div>

Here is my code this doesn’t seem to work…

```auto

year = new Date().getFullYear();
date = new Date().getDate();
month = new Date().getMonth();
field2.selectableRange = {rangeStart:new Date(year, date, month)};

```

How can I get it to only allow selections from today until anytime later?
