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
13 lines
245 B
TypeScript
13 lines
245 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;
|
|
};
|