How to customize ServiceStack DateTime display format in its HtmlFormat snapshot

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

  •  04-07-2023
  •  | 
  •  

質問

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?

役に立ちましたか?

解決

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:

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top