on master help sign in
bridge/src/lib/utils/date.ts
19 lines 287 B history raw
1const months = [
2 'Jan',
3 'Feb',
4 'Mar',
5 'Apr',
6 'May',
7 'Jun',
8 'Jul',
9 'Aug',
10 'Sep',
11 'Oct',
12 'Nov',
13 'Dec',
14];
16export const ddmmmYYYY = (time: number) => {
17 const date = new Date(time);
18 return `${date.getDate()} ${months[date.getMonth()]} ${date.getFullYear()}`;
19};