feat: created on and updated on column added in spreadsheet view (#1454)
* feat: created on and updated on column added in spreadsheet view * fix: build fix * refactor: simplify logic --------- Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
This commit is contained in:
parent
353c85120f
commit
7868bfa2b1
9 changed files with 59 additions and 4 deletions
|
|
@ -18,6 +18,13 @@ export const renderShortNumericDateFormat = (date: string | Date) =>
|
|||
month: "short",
|
||||
});
|
||||
|
||||
export const renderLongDetailDateFormat = (date: string | Date) =>
|
||||
new Date(date).toLocaleDateString("en-UK", {
|
||||
day: "numeric",
|
||||
month: "long",
|
||||
year: "numeric",
|
||||
});
|
||||
|
||||
export const findHowManyDaysLeft = (date: string | Date) => {
|
||||
const today = new Date();
|
||||
const eventDate = new Date(date);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue