import dayjs from 'dayjs' ; export function formatEventTime ( date ) { return date . format ( `h${ date . minute ( ) > 0 ? ':mm' : '' }a` ) ; } export function getEventMapKey ( date ) { return date . format ( 'MM/DD' ) ; }