use Moment.js to parse input date