How to customize ServiceStack DateTime display format in its HtmlFormat snapshot

StackOverflow https://stackoverflow.com/questions/23096959

  •  04-07-2023
  •  | 
  •  

Question

It looks like servicestack v4 (https://servicestack.net/) display DateTime in a yyyy/MM/dd format without showing the time portion at all. (see the following screenshot)

Default DateTime display in ServiceStack snapshot

How can I set the snapshot DateTime display format to display time as well?

The snapshot web page is rendered by one of its "Plugins" (HtmlFormat plugin). Or is there any way we can customize the HtmlFormat plugin to achieve that?

Était-ce utile?

La solution

To show full dates you can just append #show=fulldates to the query string.

Otherwise you can always customize Html Format by providing your own copy of with the Virtual File System by providing your own local copy of:

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top