API Event
Add: - api-client/api-event : fetch get one, update data, update status, create event Fix: - UI : create , detail dan status: untuk menyambungkan ke API ### No Issue
This commit is contained in:
12
utils/dateTimeView.ts
Normal file
12
utils/dateTimeView.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user