diff --git a/src/store/index.js b/src/store/index.js index 97fac2d0b..d5fa1e0d9 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -2100,15 +2100,10 @@ export const actions = { ) { const order = context.state.order; - var dt = new Date(referralDate); - var month = "" + (dt.getMonth() + 1); - var day = "" + dt.getDate(); - const year = dt.getFullYear(); - - if (month.length < 2) - month = "0" + month; - if (day.length < 2) - day = "0" + day; + var dtParts = referralDate.split("-"); + const year = dtParts[0]; + const month = dtParts[1]; + const day = dtParts[2].substring(0, 2); const loadDate = `${year}-${month}-${day}`;