This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
|
import {parse} from 'date-fns'
|
|
import {DATEFNS_DATE_FORMAT_KEBAB} from '@/constants/date'
|
|
import type {DateKebab} from '@/types/DateKebab'
|
|
|
|
export function parseKebabDate(date: DateKebab): Date {
|
|
return parse(date, DATEFNS_DATE_FORMAT_KEBAB, new Date())
|
|
} |