The %e and %k modifiers are not supported in the Windows implementation of the strftime function. The workaround is from the strftime documention (Example #3).