PHP strftime on Windows is stupid

Thursday 01/8/2009  –  Category: Uncategorized

Apparently %e, %T, %R and %D (there might be more) don't work on Windows because "not all conversion specifiers may be supported by your C library".

Workaround: You can add the # flag to force single digits and remove the leading zero without the space that %e will add.

Examples:
%#d for day of the month
%#I for the 12-hour clock hour

Leave a Reply