static formatDate(format, date = Date.now()) {

		let result = format.replace("d", this.append0(date.getDate()));
		result = result.replace("m", this.append0(date.getMonth() + 1));
		result = result.replace("Y", this.append0(date.getFullYear()));
		result = result.replace("H", this.append0(date.getHours()));
		result = result.replace("i", this.append0(date.getMinutes()));
		result = result.replace("s", this.append0(date.getSeconds()));
		return result;

	}
/**
	 * Formats a date into a given format
	 * 
	 * @param {string} format The format to make the date adhere to
	 * @param {Date} date The date to format
	 * @return {string} The formatted date
	 */
Formats a date into a given format

@param {string} format The format to make the date adhere to
@param {Date} date The date to format
@return {string} The formatted date
Formats a date into a given format @param { string } format The format to make the date adhere to @param { Date } date The date to format @return { string } The formatted date
static formatDate(format, date = Date.now()) {
		let result = format.replace("d", this.append0(date.getDate()));
		result = result.replace("m", this.append0(date.getMonth() + 1));
		result = result.replace("Y", this.append0(date.getFullYear()));
		result = result.replace("H", this.append0(date.getHours()));
		result = result.replace("i", this.append0(date.getMinutes()));
		result = result.replace("s", this.append0(date.getSeconds()));
		return result;
	}
static formatDate ( format , date = Date . now ( ) ) { let result = format . replace ( "d" , this . append0 ( date . getDate ( ) ) ) ; result = result . replace ( "m" , this . append0 ( date . getMonth ( ) + 1 ) ) ; result = result . replace ( "Y" , this . append0 ( date . getFullYear ( ) ) ) ; result = result . replace ( "H" , this . append0 ( date . getHours ( ) ) ) ; result = result . replace ( "i" , this . append0 ( date . getMinutes ( ) ) ) ; result = result . replace ( "s" , this . append0 ( date . getSeconds ( ) ) ) ; return result ; }
Formats a date into a given format
Formats a date into a given format