How to customize ServiceStack DateTime display format in its HtmlFormat snapshot

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

  •  04-07-2023
  •  | 
  •  

Frage

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?

War es hilfreich?

Lösung

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:

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top