generated from Luis/nextjs-python-web-template
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>
This commit was merged in pull request #40.
This commit is contained in:
12
pkgs/ui/src/utils/helpers.ts
Normal file
12
pkgs/ui/src/utils/helpers.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user