This can't be the best way to do this, but I'm not...
# dev
j
This can't be the best way to do this, but I'm not a JS developer... anyone know how I can clean this up? (this is in a traits file)
Copy code
setTitle(props) {
      stripped_journal_from_name = props.currentNoteName.split(".").slice(1).join("-");
      return luxon.DateTime.fromString(stripped_journal_from_name, "yyyy-MM-dd").toFormat("yyyy-MM-dd EEE");
    },
3 Views