chore: ticket section implement sse
This commit is contained in:
7
src/utils/date.ts
Normal file
7
src/utils/date.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export function formatDate(value: string | null | undefined) {
|
||||
if (!value) return '-';
|
||||
return new Intl.DateTimeFormat('en-IN', {
|
||||
dateStyle: 'medium',
|
||||
timeStyle: 'short',
|
||||
}).format(new Date(value));
|
||||
}
|
||||
2
src/utils/index.ts
Normal file
2
src/utils/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './routes';
|
||||
export * from './date';
|
||||
Reference in New Issue
Block a user