Files
service-aware-frontend/pkgs/ui/src/utils/helpers.ts
sara-pervana 8ee14f1a7b
Some checks failed
checks-impure / test (push) Successful in 28s
checks / test (push) Successful in 1m13s
assets1 / test (push) Failing after 52s
Before Milestone Meeting Final Changes (#40)
some final fixes before the demo

Co-authored-by: Luis-Hebendanz <consulting@qube.email>
Reviewed-on: #40
Co-authored-by: sara-pervana <saramakishti@gmail.com>
Co-committed-by: sara-pervana <saramakishti@gmail.com>
2023-12-12 23:00:37 +01:00

13 lines
281 B
TypeScript

export const formatDateTime = (date: string) => {
const _date = new Date(date);
return _date.toLocaleDateString("en-US", {
year: "numeric",
month: "long",
day: "numeric",
hour: "2-digit",
minute: "2-digit",
second: "2-digit",
hour12: true,
});
};