dateToTimestamp(dateStr) { if (!dateStr) { return '' } let newDataStr = dateStr.replace(/\.|\-/g, '/') let date = new Date(newDataStr); let timestamp = date.getTime(); return timestamp }