How would I achieve something like this in native javascript : `moment(viewingDay).isBefore(moment(), 'day');` If this is possible then I can fully ditch moment