export function timeToDateString ( time ) { return new Date ( time ) . toDateString ( ) ; } export function timeToTimeString ( time ) { return new Date ( time ) . toTimeString ( ) . substring ( 0 , 5 ) ; } export function timeToDateTimeString ( time ) { return new Date ( time ) . toString ( ) . substring ( 0 , 21 ) ; }