import { date } from './dates' ; import { toDate } from './format' ; param { string } date export function setMinDate ( dt ) { const min = date ( dt ) ; return toDate ( min . setDate ( min . getDate ( ) - 1 ) ) ; } param { string } date export function setMaxDate ( dt ) { const max = date ( dt ) ; return toDate ( max . setDate ( max . getDate ( ) + 1 ) ) ; }