I want to adjust my Visualizer in Visual Studio 2017 via the Nativis file.
There is an own class date
, which should be displayed more nicely in the debugger.
<Type Name = "date">
<DisplayString>"{1900 + ts.tm_year}-{1 + ts.tm_mon}-{ts.tm_mday}T{ts.tm_hour}:{ts.tm_min}:{ts.tm_sec}"</DisplayString>
</Type>
my current code shows something like this for a date in the debugger:
2018-1-1T0:0:0
However, I would like to have leading zeros. So like this:
2018-01-01T00:00:00
Is there a way to do that?