Julian 

 
> If I use <datePattern value=".yyyyMMdd.txt" /> the file name 
> becomes this:
> Main.log.20040430.AxA
> 
> Is there some sort of string replacement going on?

The datePattern is passed to the DateTime.ToString() function. Therefore the
DateTimeFormatInfo will interpret the values accordingly. To escape
characters in the pattern you need to enclose them in single quotes. For
example:

<datePattern value="'.'yyyyMMdd'.txt'" />

In reality you don't need to escape the '.' because the DateTimeFormatInfo
does not have a pattern for it, but Microsoft may add one in the future so
better safe than sorry.

Cheers,

Nicko

Reply via email to