Populating dates in the date-picker widget dynamically

Hi guys, I have two date-picker widgets in my page(FROM DATE and TO DATE).I want to restrict the user for two scenarios:- 1.The max possible allowed range for both the date picker is ( Current date - 2 days). for eg. If today is 22-01-2015 it should allows dates upto 19-01-2015 to pick. If user selects the FROM DATE(say 11-01-2015), then TO DATE should start from the selected FROM DATE (11-01-2015) to Current date - 2 days ie.19-01-2015 How can we do this in mx ? Thanks in advance!!
1 answers

Look at adding On-Change microflows to the input fields - your microflows can check the dates entered against your requirements and pop an error message or change the date entered.