Skip to content
On this page

formatDateTime

Formats a date or time.

Usage

ts
import { formatDate, formatTime } from '@use-kit/functions'

const date = Number(new Date())
formatDate(date)
formatTime(date)
import { formatDate, formatTime } from '@use-kit/functions'

const date = Number(new Date())
formatDate(date)
formatTime(date)

Released under the MIT License.