function formatDateTimeNow(formatter) {
    return function () {
        const today = new Date()

        return formatter.format(today)
    }
}
/**
 * Return a string of the current date and time formatted using the given
 * formatter object.
 *
 * @param {Intl.DateTimeFormat} formatter - The format to use to format the
 *                                          output.
 * @returns A string of the current date and time formatted using the given
 *          formatter object.
 */
Return a string of the current date and time formatted using the given
formatter object.

@param {Intl.DateTimeFormat} formatter - The format to use to format the
output.
@returns A string of the current date and time formatted using the given
formatter object.
Return a string of the current date and time formatted using the given formatter object . @param { Intl . DateTimeFormat } formatter - The format to use to format the output . @returns A string of the current date and time formatted using the given formatter object .
function formatDateTimeNow(formatter) {
    return function () {
        const today = new Date()
        return formatter.format(today)
    }
}
function formatDateTimeNow ( formatter ) { return function ( ) { const today = new Date ( ) return formatter . format ( today ) } }
Return a string of the current date and time formatted using the given
 formatter object.
Return a string of the current date and time formatted using the given formatter object .