@js-sugar/date
Version:
A multi-calendar, tree-shakable, extensible, immutable and lightweight date library for JavaScript
11 lines (10 loc) • 333 B
TypeScript
import { DateTime } from '../main';
/**
* Returns an ISO 8601-compliant string representation of this DateTime.
* @public
* @param date - DateTime
* @return ISO 8601 compliant string representation of the given DateTime
*/
export declare function formatIso(date: DateTime, options?: {
format?: string;
}): string;