Formats a timestamp into a human-readable date and time string.
The timestamp to format. Defaults to the current date and time.
A formatted string representing the date and time.
datetimeFormat(new Date('2025-01-01T00:00:00Z')) // 'January 1, 2025 at 12:00 AM'datetimeFormat() // 'January 1, 2025 at 12:00 AM' Copy
datetimeFormat(new Date('2025-01-01T00:00:00Z')) // 'January 1, 2025 at 12:00 AM'datetimeFormat() // 'January 1, 2025 at 12:00 AM'
Formats a timestamp into a human-readable date and time string.