Skip to content

Commit

Permalink
dnicer ate format
Browse files Browse the repository at this point in the history
  • Loading branch information
thoughtspile committed Dec 7, 2023
1 parent 8f5ea38 commit a6d844d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- append
- streaming processing
- table
- datetime format
- custom date / number formatters
- Analysis
- Filters
- remove filter
Expand Down
6 changes: 5 additions & 1 deletion src/app/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,8 @@ function HeaderCell(props: HeaderCellProps) {
);
}

const stringify = (val: unknown) => val == null ? null : String(val);
const stringify = (val: unknown) => {
if (val == null) return null;
if (val instanceof Date) return val.toLocaleString();
return String(val);
};

0 comments on commit a6d844d

Please sign in to comment.