Replies: 1 comment 3 replies
-
I would suggest using moment.js to give meaningful dates(Or at least enable it) export const CreatedAtCell: React.FC = () => {
const { cellData } = useTableCell()
// Ensure cellData is not null before passing it to moment
const validCellData = cellData !== null ? cellData : undefined
return <Fragment>{validCellData ? moment(validCellData).fromNow() : 'N/A'}</Fragment>
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I would like to ask if it possible to configure date display format in our admin panel (createdAt, updatedAt, versions)?
i can see the default format is MM-DD-YYYY.
How do i apply global format of DD-MM-YYYY H:M a to all of my payload app?
Of course we can specify date format from our date field, but i think the use case is much more than that.
hope everyone can help with this, thankyou 🙏
Beta Was this translation helpful? Give feedback.
All reactions