How to format date column in DetailsList? #120
Answered
by
scottdurow
kthirapatpibul
asked this question in
Q&A
-
By default, the date column in a Fluent DetailsList show both date and time, how do I format the date so that it only show the date? Also, it seems that null date are being displayed as 12/31/1969, how do I make it show "blank"? |
Beta Was this translation helpful? Give feedback.
Answered by
scottdurow
Sep 26, 2022
Replies: 2 comments 9 replies
-
Hi @kthirapatpibul,
Hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
denise-msft
-
Hi @scottdurow, |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @kthirapatpibul,
You can use
AddColumns
. E.g.Items
property to include an additional column that formats your date:Items
ColSortBy
property to the original date so that you can sort by the real date field.Hope this helps!