Question: In VoiceXML, how can I set the timeout when start the xml?

This is my VoiceXML document:

```xml
<vxml version="2.1">
    <form>
        <block>
            <prompt>Hello from VXML</prompt>            
        </block>
        <transfer name="result" dest="tel:+12321312" bridge="true">
            <prompt>Please wait while we transfer you.</prompt>
            <grammar xml:lang="en-US" root = "TOPLEVEL" mode="voice">
                <rule id="TOPLEVEL" scope="public">
                    <one-of>
                        <item> disconnect </item>
                    </one-of>
                </rule>
            </grammar>
        </transfer>
    </form>
</vxml>

```

Answer: 
You can manipulate date using Moment, so you will have:

```
$("#from").on("dp.change", function (e) {
  $('#to').data("DateTimePicker").minDate(e.date);
  var nextMonth = e.date.add(1, 'months');
  $('#to').data("DateTimePicker").maxDate(nextMonth);
});

```

Note that moment has a subtract method too, if you need to do the same operation in reverse.
```
$("#from").on("dp.change", function (e) {
  $('#to').data("DateTimePicker").minDate(e.date);
  var nextMonth = e.date.add(3, 'months');
  $('#to').data("DateTimePicker").maxDate(nextMonth);
});

```

is failed when the maxdate belows 3 months