function formatDate( date ) {
	return new Date( date || Date.now() ).toISOString().slice( 0, 10 );
}
Formats a given date as a string in the format YYYY-MM-DD.

@private
@param {(string|integer)} [date] - date to format (default: current date)
@returns {string} formatted date string in YYYY-MM-DD format