UNPKG

@cnamts/vue-dot

Version:

Implementation of our Design System for the French Health Insurance

7 lines (5 loc) 182 B
import dayjs, { Dayjs } from 'dayjs'; /** Format a date with dayjs */ export function formatDate(date: Dayjs, format = 'DD/MM/YYYY'): string { return dayjs(date).format(format); }