I know the title might be confusing, but I’m not sure how to word it better….
I’m doing this to get the logs of the current hour:
'TraceSink-'yyyy-MM-dd HH'-Hourly.log'
How can I get the previous hour? i.e.:
'TraceSink-'yyyy-MM-dd (HH-1)'-Hourly.log'
Is there anything possible with time format like that?
EDIT: I don’t have access to the C# code but a exe.config where I can change what goes inside.
Like var on DateTime.ToString(var);
Am I asking too much?
The answer to your question is no.
The format string only defines the format. It does not have the ability to perform calculation on it (and why would it?)