Files
hipmi-mobile/utils/dateTimeView.ts
Bagasbanuna02 005b798688 Event
Fix:
- UI: status, detail status, delete button, detail utama, tampilan utama
- Semua terintergrasi ke API mobile

### No Issue
2025-09-12 14:14:37 +08:00

15 lines
254 B
TypeScript

import dayjs from "dayjs";
export const dateTimeView = ({
date,
withoutTime = false,
}: {
date: any;
withoutTime?: boolean;
}) => {
const newDate = dayjs(date).format(
`DD-MM-YYYY ${withoutTime ? "" : ", HH:mm"}`
);
return newDate;
};