I have the following code that dynamically sets dates dependent upon the value passed in to parse.
const dayCurrent = new Date(); const dayFromDB = pars