This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Date { | |
/** | |
* Extends the Date object with a `format` method to format dates as strings. | |
* | |
* @param {string} format - The format string specifying the desired date/time format. | |
* @returns {string} The formatted date string. | |
* | |
* @example | |
* ```typescript | |
* const myDate: Date = new Date(); |