feat: new layout
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
import localizedFormat from 'dayjs/plugin/localizedFormat';
|
||||
import 'dayjs/locale/vi'
|
||||
dayjs.extend(relativeTime);
|
||||
dayjs.extend(localizedFormat);
|
||||
dayjs.locale('vi')
|
||||
|
||||
const formatDate = (input: string, format?: string) => input ? dayjs(input).format(format || 'DD/MM/YYYY') : ''
|
||||
|
||||
export {
|
||||
formatDate
|
||||
}
|
||||
Reference in New Issue
Block a user