Adding dynamic datepicker call.
Make sure to check the corret pattern.