Community > Discussions
93 views
5 replies

How can I display a date part in a visualizer template

I need to just display the day part of the @row["Datetime"] field.

Scott Whiting Scott Whiting
Published 01/15/2021 13:05
Add Comment
mark chris

When I actually found it out, I realised there had to be a solution.

Better than the response I received from Mandeep's team.

replied 04/16/2021 00:12
JohnKK

Scott- this works for me:

  @(DateTime.Parse(@row["Date"]).ToString("ddd ")

This will display Mon or Tue, etc.
If you want to display the number or any other part of the date,
 just replace the ddd with the format you want. 
Here is a table with the options:

www.c-sharpcorner.com/blogs/date-and-time-format-in-c-sharp-programming1

replied 03/03/2021 13:26
Scott Whiting

Thanks JohnKK,

I did finally get it figured out I knew there had to be a way.

Better than the answer i got from Mandeeps staff.

replied 03/03/2021 14:40
Ashish Pachori

With this @row["Datetime"] field, You can display full date only.

replied 01/18/2021 13:19
Scott Whiting

WOW!! that was a real helpful bit of information...But I think I had already figured that part out.

replied 01/18/2021 15:12

Last Activity 04/16/2021 00:12