toISOString
The `toISOString` method is a built-in JavaScript function that returns a string representing the date in the ISO 8601 format. This format is a standardized way to represent dates and times, ensuring consistency across different systems and applications. The method is called on a Date object and does not take any arguments.
The output string follows the pattern YYYY-MM-DDTHH:mm:ss.sssZ. YYYY represents the four-digit year, MM is the two-digit
For example, if you have a JavaScript Date object representing December 25, 2023, at 10:30:00 AM UTC,