Skip to content

utils/date

Here are all date related utils.

Use @zl-asica/react or @zl-asica/react/utils for all utils.

Example

tsx
import { formatDate } from '@zl-asica/react';

const MyComponent = () => {
  const formatted = formatDate(new Date(), "YYYY-MM");
  // formatted will be something like "2025-11"
  return <p>{formatted}</p>;
};

Interfaces

Type Aliases

Functions

Released under the MIT License.