import formatToDate from './formatToDate' ; import fillWithZeros from '../helpers/fillWithZeros' ; example param value const formatToDateTime = ( value ) : string => ( formatToDate ( value ) + ' ' + fillWithZeros ( value . getHours ( ) , 2 ) + ':' + fillWithZeros ( value . getMinutes ( ) , 2 ) ) ; export default formatToDateTime ;