Skip to content

formatDateOnly — @gj-kit/format

A public function from @gj-kit/format. The signature below is taken directly from the 0.1.1 release declaration.

import { formatDateOnly } from '@gj-kit/format';
/** `YYYY-MM-DD` (or `YYYY.MM.DD`) — date without the time-of-day. */
declare function formatDateOnly<TFallback = string>(value: FormatDateInput | null | undefined, options: FormatDateOptions<TFallback>): string | TFallback;

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/format
  • Version: 0.1.1
  • Public entry: .
  • Source: GitHub