JSFiddle - React, Tailwind, and code Playground
by tassadaque
JavaScript
var datepicker = "28/06/2011";
alert(datepicker);
var joindate = new Date(
parseInt(datepicker[2], 10),
parseInt(datepicker[1], 10) - 1,
parseInt(datepicker[0], 10)
);
document.write(joindate); // Fri Jun 24 2011 00:00:00 GMT+0500 (West Asia Standard Time)
joindate.setDate(joindate.getDate() + 1); // substitute 1 with actual number of days to add
document.write(joindate);