useFormatters
Installation
import { useFormatters } from 'uxp/components';Signature
function useFormatters(): { formatDate: (date: string | Date, options: ExtendedFormatOptions) => string; }Examples
tsx
// Import the hook and get the formatDate function
import { useFormatters } from '@/hooks/useFormatters';
const { formatDate } = useFormatters();
const now = new Date();Last updated