1
0
forked from test/crm
jcrm/frontend/src/utils.js
Shariq Ansari 4580d3ca9b fix: added created/modified time stamp
also added scroll to details and activities section
2023-08-02 18:26:56 +05:30

11 lines
264 B
JavaScript

import { useDateFormat, useTimeAgo } from '@vueuse/core'
export function dateFormat(date, format) {
const _format = format || 'DD-MM-YYYY HH:mm:ss'
return useDateFormat(date, _format).value
}
export function timeAgo(date) {
return useTimeAgo(date).value
}