mirror of https://github.com/wg-easy/wg-easy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
324 B
13 lines
324 B
export function useDateTime() {
|
|
const dateTime = (value) => {
|
|
return new Intl.DateTimeFormat(undefined, {
|
|
year: "numeric",
|
|
month: "short",
|
|
day: "numeric",
|
|
hour: "numeric",
|
|
minute: "numeric",
|
|
}).format(value);
|
|
};
|
|
|
|
return { dateTime };
|
|
}
|
|
|