mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-13 00:46:48 +02:00
First public commit
This commit is contained in:
commit
e05cd62e53
228 changed files with 17717 additions and 0 deletions
9
components/forms/poll-options-form/utils.ts
Normal file
9
components/forms/poll-options-form/utils.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { format } from "date-fns";
|
||||
|
||||
export const formatDateWithoutTz = (date: Date): string => {
|
||||
return format(date, "yyyy-MM-dd'T'HH:mm:ss");
|
||||
};
|
||||
|
||||
export const formatDateWithoutTime = (date: Date): string => {
|
||||
return format(date, "yyyy-MM-dd");
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue