Forum Discussion
View Formatting =toLocaleDateString is breaking for last created item
Hello,
I am working on a solution to display short status messages on our SPO Homesite.
I am nearly there, but there is an annoying behaviour with one date displayed on the card.
To represent the date when the status messages was created I use the following code in the txt-content property:
Nils_Kirsch Try using this:
"txtContent": "='\n' + if([$ImgHover], ':woman_technologist: ', '') + [$Author.title] + ' ' + toLocaleDateString([$Created])",Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
3 Replies
Nils_Kirsch Try using this:
"txtContent": "='\n' + if([$ImgHover], ':woman_technologist: ', '') + [$Author.title] + ' ' + toLocaleDateString([$Created])",Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
- Nils_KirschCopper ContributorThank you so much Ganesh. Looks like it's working. Have a wonderful day.
Nils_Kirsch You're welcome, glad it worked for you. Have a good day ahead!
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs