Hi Maneesh,
I'm not quite sure I understand what you are trying to accomplish - the situation is that you have a text field to capture (sample dates)
14/3/2018,31/5/2018
And then reformat to a date object?
In general, I would suggest having dates entered as date questions - that would provide the most flexibility to further process in the form.